S
S
Skauyt2020-10-15 18:52:52
Python
Skauyt, 2020-10-15 18:52:52

How to search for a specific role in client events?

How to search for a specific role in client.events?. Something doesn't work for me. Someone said to do it through a loop, but I still did not understand ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2020-10-15
@Skauyt

By ID: Guild.get_role
By any other attribute: discord.utils.find or discord.utils.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question