change to message.channel

This commit is contained in:
rich committed 2019-11-09 18:37:56 -05:00
1 parent 12712b8ff6
commit accb840cff
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ async def holyshit(ctx):
@bot.command()
@commands.cooldown(rate=1, per=30.0, type=commands.BucketType.user)
async def bitch(ctx, member : discord.Member="NONE"):
if ctx.channel.is_nsfw():
if ctx.message.channel.is_nsfw():
ctx.send("U can't use that command!")
else:
await play_sound(ctx, member, "./sounds/monkey_bitch.mp3", "$bitch")