Fix setnick permission issue
This commit is contained in:
parent
446a38f31a
commit
2f9cc0563b
|
@ -1,13 +1,10 @@
|
|||
module.exports = {
|
||||
name: 'setnick',
|
||||
description: 'Sets yours or another users nickname',
|
||||
execute(client, message, args,) {
|
||||
new Discord.GuildMember(data, guild);
|
||||
const guild = guild.fetch
|
||||
const member = guild.member(message.author)
|
||||
if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")){
|
||||
|
||||
} else {
|
||||
message.channel.send("no permission")
|
||||
}
|
||||
description: 'i genuinely fucking dont know. :SylvPain:',
|
||||
execute(client, message, args, Discord) {
|
||||
if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) {
|
||||
message.channel.send("meow")
|
||||
} else {
|
||||
message.channel.send("no permission")
|
||||
};
|
||||
}}
|
Reference in New Issue