Answer the question
In order to leave comments, you need to log in
How to get the desired list id on event?
Hello!
Tell me, please, how can I get certain users (id) from the list? Here is my code. It's just not convenient to enter each specific user (id) into a variable. It was great if getting certain users (id) under one variable was entered.
Thank you.
(I'm still a pynoob, so don't judge too harshly.)
Here's what I've got so far.
@client.event
async def on_member_join(message):
user0 = message.guild.get_member(...) # id
user1 = message.guild.get_member(...) # id
for m in message.guild.members:
if m == user0:
... # команда
if m == user1:
... # команда
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question