I want to get the ids from this list to put them in an other to use
random.choice(list)
[<Member id=986970159736586261 name='Nasgar-Bot' discriminator='5799' bot=True nick=None guild=>, <Member id=568157479020527636 name='ElmerKao' discriminator='0058' bot=False nick=None guild=>]
How can i get the id from here and put them into a list to use that command?
The way you worded you problem wasn't very clear but I think I understood, you want to add a user id in a list.Let's imagine the user sent a message. that you passed to your function with ctx.
ids = []
discord_id = ctx.message.author.id
ids.append(discord_id)
I am not sure if this answer is clear enough but try to give more context when asking a question.
PS: don't use list as a name for a list, it will break your code.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments