This commit is contained in:
Zeva Rose 2021-07-19 13:16:26 -06:00
parent 7cee33315c
commit 85643788e3

View file

@ -84,7 +84,9 @@ class SettingsCog(commands.Cog):
) )
@commands.has_permissions(administrator=True) @commands.has_permissions(administrator=True)
async def _userlog(self, ctx, channel: TextChannel): 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) self.update_settings("userlog", channel.id, ctx.guild.id)
await ctx.send( await ctx.send(
f"Settings applied. New userlog channel is {channel.mention}" f"Settings applied. New userlog channel is {channel.mention}"