$setUserNickname
$setUserNickname
will change the nickname of a guild member.
Usage
$setUserNickname[userID;newName;reason?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
userID | number | The user ID of the user whose nickname shall be changed. | true |
newName | string, number | Their new nickname. | true |
reason? | string, number | Reason that will be displayed in the guild’s audit logs. | false |
Example(s)
This will change your nickname to “I love aoi.js”: (won’t work if you’re the guild owner)
1client.command({2 name: "setUserNickname",3 code: `4 $setUserNickname[$authorID;I love aoi.js;They simply love aoi.js]5 `6});