honestly. i dont know what im doing send help
This commit is contained in:
parent
ca6161933d
commit
6fd891b636
1 changed files with 13 additions and 6 deletions
|
@ -1,6 +1,13 @@
|
||||||
//module.exports = {
|
const { DiscordAPIError } = require("discord.js")
|
||||||
// name: "setnick",
|
|
||||||
// description: "Set yours or another users nickname."
|
|
||||||
// execute(client, message, args) {
|
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
name: "setnick",
|
||||||
|
description: "Set yours or another users nickname.",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const guild = guild.fetch
|
||||||
|
const member = guild.member(message.author)
|
||||||
|
if (guild.member.hasPermission('CHANGE_NICKNAME')) {
|
||||||
|
message.channel.send("yes")
|
||||||
|
} else {
|
||||||
|
message.channel.send("no")
|
||||||
|
}}}
|
||||||
|
|
Reference in a new issue