Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] set token command fix #1449

Merged
merged 9 commits into from
Mar 22, 2018
3 changes: 2 additions & 1 deletion redbot/core/core_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down