mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[V3] Set token command fix (#1449)
* [V3] Add set token command * DM check * warning message + delete if token isn't send in DM * Update string formatting * fix condition invertion
This commit is contained in:
@@ -744,7 +744,8 @@ class Core:
|
||||
@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()
|
||||
|
||||
Reference in New Issue
Block a user