Disocord.py Rewrite
Error: No
The command below is not working as expected
@bot.event
async def on_message(message):
x = (559253532759425044)
er = bot.get_channel(559253532759425044)
if not message.channel.id != x:
return
else:
if "p/" in message.content.lower():
await message.channel.send('Write this command in {}'.format(er.mention))
The p/ is the bots prefix, This code above tells (Write this command in {}'.format(er.mention)) when used p/ in the right channl the bot doesn't say anything but i use any command like p/help it doesn't works.actually The event should allow members use bot commands (@bot.command) only in the channel specified not any other channel but the thing is no commands work in the channel specified nor in any channel in the server. Any help would be great :) Edit: (Specified my question and made it a bit clear)