commit
412f907b0b
|
@ -1,9 +1,7 @@
|
||||||
const { GuildMember } = require("discord.js");
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'setnick',
|
name: 'setnick',
|
||||||
description: 'Sets your nickname',
|
description: 'Sets your nickname',
|
||||||
execute(client, message, args, Discord) {
|
execute(client, message, args) {
|
||||||
|
|
||||||
if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) {
|
if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) {
|
||||||
var newnick = args.slice(0).join(" ")
|
var newnick = args.slice(0).join(" ")
|
||||||
|
@ -29,6 +27,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.")
|
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.")
|
||||||
|
message.channel.send({ embed: successembed });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const failembed = {
|
const failembed = {
|
||||||
"title": "<:AnitroxDenied:809651936642203668> Well that happened...",
|
"title": "<:AnitroxDenied:809651936642203668> Well that happened...",
|
||||||
|
@ -44,6 +43,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
message.channel.send({ failembed });
|
message.channel.send({ embed: failembed });
|
||||||
};
|
};
|
||||||
}}}
|
};
|
||||||
|
}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"prefix": "n!",
|
"prefix": "n!",
|
||||||
|
|
||||||
"token": "NTQwOTQxNjc5MDQ2Mjk1NTUz.XFR9Mg.MpSy0w6Gqy72nGsfIEH8opOGn8A",
|
"token": "token",
|
||||||
"ownerID": "309427567004483586",
|
"ownerID": "309427567004483586",
|
||||||
"release": "anitrox_ptb",
|
"release": "anitrox_ptb",
|
||||||
"build": "Anitrox Stable Release Canidiate 1"
|
"build": "Anitrox Stable Release Canidiate 1"
|
||||||
|
|
Reference in New Issue