Skip to content

$giveRoles

$giveRoles will give an specific user multiple or one specific role(s).

Usage

$giveRoles[guildID;userID;reason?;...roles]

Parameters

FieldTypeDescriptionRequired
guildIDnumberOf which guild the member should receive roles of.true
userIDnumberThe user ID of the guild member.true
reason?stringThe reason that will be displayed in the guild’s audit logs.false
rolesnumberThe 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):

1
client.command({
2
name: "giveRoles",
3
code: `
4
$giveRoles[$guildID;$authorID;Some reason.;$findRole[Admin];$findRole[Moderator]]
5
`
6
});