Update setnick

This commit is contained in:
Anthony M 2021-03-16 17:50:29 -05:00 committed by GitHub
parent 64a1655ab9
commit 37f45c6d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ module.exports = {
if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) {
var newnick = args.slice(0).join(" ")
try {
const successembed = {
"title": "<:AnitroxSuccess:809651936819019796> Nickname Changed",
"color": 9442302,
@ -28,7 +29,7 @@ module.exports = {
]
};
message.member.setNickname(newnick, "Nickname change requested by the server member. If you don't want users to be able to change their nickname disable 'CHANGE_NICKNAME' via Change Nickname in Roles.")
} else {
} catch (error) {
const failembed = {
"title": "<:AnitroxDenied:809651936642203668> Well that happened...",
"color": 13632027,
@ -45,4 +46,4 @@ module.exports = {
};
message.channel.send({ failembed });
};
}}
}}}