feat(i18n): start skeleton class for translations
This commit is contained in:
parent
dbf7f3ce8e
commit
bf6d961658
7 changed files with 109 additions and 3 deletions
tuxbot/core/utils/functions
|
@ -6,7 +6,8 @@ from discord.ext import commands, flags
|
|||
|
||||
class ContextPlus(commands.Context):
|
||||
async def send(self, content=None, *args, **kwargs):
|
||||
if (hasattr(self.command, 'deletable') and self.command.deletable) \
|
||||
if (hasattr(self.command, 'deletable')
|
||||
and self.command.deletable) \
|
||||
and kwargs.pop('deletable', True):
|
||||
message = await super().send(content, *args, **kwargs)
|
||||
await message.add_reaction('🗑')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue