From 12cb7828466dcbc05278d336378524c43c01379d Mon Sep 17 00:00:00 2001 From: NatrixAeria Date: Mon, 3 May 2021 15:01:09 +0200 Subject: Initialise notify channel --- commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = [] -- cgit v1.2.3