change to message.channel
This commit is contained in:
1 parent
12712b8ff6
commit
accb840cff
1 file changed
+1
-1
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user