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