mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
update the success emotes
This commit is contained in:
parent
8f170d7f13
commit
ecefefb4c9
6 changed files with 29 additions and 10 deletions
|
@ -65,7 +65,7 @@ class Emotes:
|
|||
|
||||
if isinstance(error, commands.NoPrivateMessage):
|
||||
await context.send(
|
||||
f'{utils.SUCCESS_EMOTES[False]} Sorry, this command may only be used in a server.')
|
||||
f'{utils.SUCCESS_EMOJIS[False]} Sorry, this command may only be used in a server.')
|
||||
|
||||
@commands.command()
|
||||
async def add(self, context, *args):
|
||||
|
@ -220,7 +220,7 @@ class Emotes:
|
|||
for emote in emotes:
|
||||
await context.invoke(self.remove, emote)
|
||||
with contextlib.suppress(discord.HTTPException):
|
||||
await context.message.add_reaction('✅')
|
||||
await context.message.add_reaction(utils.SUCCESS_EMOJIS[True])
|
||||
|
||||
@commands.command(aliases=('mv',))
|
||||
async def rename(self, context, old, new_name):
|
||||
|
|
|
@ -32,10 +32,10 @@ class Meta:
|
|||
try:
|
||||
await context.author.send(self.bot.config['support_server_invite'])
|
||||
with contextlib.suppress(discord.HTTPException):
|
||||
await context.message.add_reaction('📬')
|
||||
await context.message.add_reaction('📬') # TODO make this emoji configurable too
|
||||
except discord.Forbidden:
|
||||
with contextlib.suppress(discord.HTTPException):
|
||||
await context.message.add_reaction('❌')
|
||||
await context.message.add_reaction(utils.SUCCESS_EMOJIS[True])
|
||||
await context.send('Unable to send invite in DMs. Please allow DMs from server members.')
|
||||
|
||||
def setup(bot):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue