Python Forum
Discord Bot - If Person Mentions Role
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Discord Bot - If Person Mentions Role
#1
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OOP hellp (simple class person) onit 4 2,559 Jul-14-2020, 06:54 PM
Last Post: onit
  Creating Discord Bot: Unused import statement 'import discord EyeballCandy 0 3,560 Feb-02-2020, 10:53 PM
Last Post: EyeballCandy
  A file for every person of a list Emmanouil 3 2,317 Aug-29-2019, 07:19 AM
Last Post: perfringo
  Installing Homebrew on my mac; non computer-savvy person duongtn34 1 1,885 Oct-23-2018, 09:11 AM
Last Post: Larz60+
  Why Person() takes no arguments dianefly 3 31,018 Oct-22-2018, 04:15 PM
Last Post: dianefly
  Installing Homebrew on my mac; non computer-savvy person hohen036 3 3,827 Oct-12-2018, 11:02 PM
Last Post: Larz60+
  Can you tell me where this person got the version of Python that he's using? nelsonkane 8 5,103 Mar-11-2018, 11:10 AM
Last Post: gptura
  What role does module "sys" play in this code? Athenaeum 4 4,258 Oct-03-2017, 02:08 AM
Last Post: Athenaeum

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020