mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -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:
parent
96869074c3
commit
cf5a63a5d5
@ -744,7 +744,8 @@ class Core:
|
|||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def token(self, ctx, token: str):
|
async def token(self, ctx, token: str):
|
||||||
"""Change bot token."""
|
"""Change bot token."""
|
||||||
if not not isinstance(ctx.channel, discord.DMChannel):
|
|
||||||
|
if not isinstance(ctx.channel, discord.DMChannel):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user