I would like the bot to recognize when the @Community Manager, @Admin, @Moderator roles are tagged, either single, or multiple roles tagged in same message, then send a message to the channel mentioning the user name.
I can get the bot to recognize when it's been tagged using this code:
if client.user.mentioned_in(message) and message.mention_everyone is False:
await message.delete()
I cannot for the life of me figure out how to see if other roles were tagged.
I've tried
if message.role_mentions.name('Admin'):
#do stuff
but get this error: AttributeError: 'list' object has no attribute 'name'