$giveRoles
$giveRoles
will give an specific user multiple or one specific role(s).
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID | number | Of which guild the member should receive roles of. | true |
userID | number | The user ID of the guild member. | true |
reason? | string | The reason that will be displayed in the guild’s audit logs. | false |
roles | number | The IDs of the roles to give. | true |
Please note that the bots highest role must be above the role you’re trying to assign.
Example(s)
This will assign you two role called “Admin” and “Moderator” (if present):