I am making a bot in discord.py and want my bot to ping a role when a Webhook sends message in a specific channel. Is there anyway to do this? Right now all I have is the channel id and I am pretty sure it is a client Event
@client.event
async def pingrole():
channel = client.get_channel("channel id")
on_messageevent and check for messages - Dominikon_messageevent. - Dominikon_messageas @Dominik said, get role by id and then mention it using.mention. Example:role = guild.get_role(id)role.mentionand then you can send it as message. - RiveN