0.2 - Befehle Migrieren (#42) #49

Merged
edraft-dev merged 6 commits from #42 into 0.2 2022-10-02 23:34:39 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit a4dc66396e - Show all commits

View File

@ -104,8 +104,7 @@ class MessageService(MessageServiceABC):
await asyncio.sleep(wait_before_delete)
if is_persistent:
await self.delete_message(ctx.message, without_tracking)
return
if ctx.guild is not None:
await self.delete_messages(List(discord.Message, [msg, ctx.message]), ctx.guild.id)
await self.delete_message(msg)

View File

@ -35,7 +35,7 @@ class RestartCommand(DiscordCommandABC):
self._logger.trace(__name__, f'Loaded command service: {type(self).__name__}')
@commands.command()
@commands.hybrid_command()
@commands.guild_only()
async def restart(self, ctx: Context):
self._logger.debug(__name__, f'Received command restart {ctx}')