how to add a role from a user ID and a role ID
I would like to assign role using user ID and role ID, but in my research I could only find the following example.
Sorry for the rudimentary question.
5 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Sorry for repeating myself. What code should I write in this case?
I would like to know how to get "<Guild>.members"
Is
newState.guild.member
correct?
If so, it is undefined.
newState.guild.members.addRole(role)
I tried as follows. However, I got the following error
Sorry for repeating myself.
I read it but did not understand it. If possible, I would like an explanation with specific examples.
I was able to do it successfully.
After comparing what I was taught and reading the documentation, I think I have some idea of how to read it.
Thank you.