Skip to content
Advertisement

How do I give user roles in discord when the user types a command?

I am having trouble assigning a role to a user when they type in a command

Code:

JavaScript

When the user types “!BMOrole”, I want to give them a role called, “BMO” and also display a message.

The error I’m receiving is:

JavaScript

Advertisement

Answer

you forget set a default user:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement