From accb840cff7e13d4309fef280a21090723b1aefe Mon Sep 17 00:00:00 2001 From: Rich Oberholtzer Date: Sat, 9 Nov 2019 18:37:56 -0500 Subject: [PATCH] change to message.channel --- r0b3bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index 9bfefae..bcc3f84 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -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")