From 85643788e34d396430fce43545923087d370cc90 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Mon, 19 Jul 2021 13:16:26 -0600 Subject: [PATCH] Close #50 --- jarvis/cogs/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jarvis/cogs/settings.py b/jarvis/cogs/settings.py index 2840e94..f285fdc 100644 --- a/jarvis/cogs/settings.py +++ b/jarvis/cogs/settings.py @@ -84,7 +84,9 @@ class SettingsCog(commands.Cog): ) @commands.has_permissions(administrator=True) async def _userlog(self, ctx, channel: TextChannel): - await ctx.defer() + if not isinstance(channel, TextChannel): + await ctx.send("Channel must be a TextChannel", hidden=True) + return self.update_settings("userlog", channel.id, ctx.guild.id) await ctx.send( f"Settings applied. New userlog channel is {channel.mention}"