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_message
event and check for messages – Dominikon_message
event. – Dominikon_message
as @Dominik said, get role by id and then mention it using.mention
. Example:role = guild.get_role(id)
role.mention
and then you can send it as message. – RiveN