Python Forum

Full Version: Discord Bot - If Person Mentions Role
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Didn't really know where to put this.

I want to make it so if someone mentions a role and types @Fight Hufflepuff, the bot will respond.
Here's my code:

if message.content.mention('@Fight Hufflepuff'):
(There's async def and await scripts above, I just need help with this bit.)
I know that isn't right, but I couldn't figure it out. I've tried tutorials and everything.

Thanks!