#How to get member object by id
1 messages · Page 1 of 1 (latest)
Or use discord.utils.get
member = discord.utils.get(interaction.guild.members, id = info)
I tried member = await interaction.guild.fetch_member(info) and get this error
When you add a role with member.add_roles() you need to pass in a role object, not a roleid. So first get the role with eg.
role = discord.utils.get(interaction.guild.roles, id = verified)
And then call add_roles(role)
Thanks bro
it's work
Anytime !!
How i can delete this post
Do /close
This thread was archived by the user that opened it.
Thanks