Fix setnick permission issue

This commit is contained in:
Anthony M 2021-03-12 10:57:13 -06:00 committed by GitHub
parent 446a38f31a
commit 2f9cc0563b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 10 deletions

View File

@ -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")
};
}}