diff options
author | NatrixAeria <upezu@student.kit.edu> | 2021-05-03 15:01:09 +0200 |
---|---|---|
committer | NatrixAeria <upezu@student.kit.edu> | 2021-05-03 15:01:09 +0200 |
commit | 12cb7828466dcbc05278d336378524c43c01379d (patch) | |
tree | 790bbbe38862569720c13b14c39c6019ae4ac10e /commands.py | |
parent | 74847b8417f64e6c69fe2338f0a1b5d513b20ace (diff) |
Diffstat (limited to 'commands.py')
-rw-r--r-- | commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands.py b/commands.py index c3ff09a..c10e67a 100644 --- a/commands.py +++ b/commands.py @@ -67,12 +67,13 @@ async def destroy(ctx: commands.Context): await stop(ctx) futures = [] meta_channel = ctx.bot.get_meta_channel(ctx) - for channel in (ctx.bot.get_lobby_channel(ctx, meta_channel), meta_channel): + for channel in (ctx.bot.get_lobby_channel(ctx, meta_channel), ctx.bot.get_notify_channel(ctx, meta_channel), meta_channel): if channel: futures.append(channel.delete()) await await_n(futures) ctx.bot.lobby_channel = None ctx.bot.meta_channel = None + ctx.bot.notify_channel = None ctx.bot.pair_channels = [] |