From 6b7c708fa26c7711dfbe85a4369d150ecf5bcde1 Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 12 Jan 2022 09:40:34 +0200 Subject: [PATCH] fix (timer): Fix typo in `--text` setting. --- bot/modules/study/timers/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/study/timers/commands.py b/bot/modules/study/timers/commands.py index 319d4de4..7cfefc14 100644 --- a/bot/modules/study/timers/commands.py +++ b/bot/modules/study/timers/commands.py @@ -404,7 +404,7 @@ async def _pomo_admin(ctx, flags): # Attempt to parse the provided channel channel = await ctx.find_channel(flag, interactive=True, chan_type=discord.ChannelType.text) if channel: - if not channel.permissions_for(ctx.guild.me.send_messages): + if not channel.permissions_for(ctx.guild.me).send_messages: return await ctx.error_reply( f"Cannot send pomodoro alerts to {channel.mention}! " "I don't have permission to send messages there."