Close #50
This commit is contained in:
parent
7cee33315c
commit
85643788e3
1 changed files with 3 additions and 1 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue