$setNickname
Sets a nickname for the defined user in a guild.

FUNCTION USAGE

  • $setNickname[guildID;userID;nick]

Properties:

guildID - The ID of the guild where the user is located. userID - The ID of the user to change the nickname of. nick - The new nickname to change the user to in the defined guild.

Example:

1
bot.Command({
2
name: "setnickname",
3
code: `
4
$setNickname[$guildID;$mentioned[1];$message[2]]
5
$onlyIf[$message[2]!=;There're no valid nicknames provided]
6
$onlyIf[$userExists[$mentioned[1]]==true;You must provide a valid mention to change the user's nickname]
7
`
8
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: