diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 745df6b77f9..be5a324810c 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -744,7 +744,8 @@ def check(m): @checks.is_owner() async def token(self, ctx, token: str): """Change bot token.""" - if not not isinstance(ctx.channel, discord.DMChannel): + + if not isinstance(ctx.channel, discord.DMChannel): try: await ctx.message.delete()