Skip to content

$setUserNickname

$setUserNickname will change a nickname of a guild member.

Usage

$setUserNickname[userID;newName;reason?]

Parameters

FieldTypeDescriptionRequired
userIDnumberThe user ID of the user whose nickname shall be changed.true
newNamestring, numberTheir new nickname.true
reason?string, numberReason that will be displayed in the guild’s audit logs.false

Example(s)

This will change your nickname to “I love aoi.js”: (wont work if you’re the guild owner)

1
client.command({
2
name: "setUserNickname",
3
code: `
4
$setUserNickname[$authorID;I love aoi.js;They simply love aoi.js]
5
`
6
});