honestly. i dont know what im doing send help

This commit is contained in:
Anthony M 2021-02-28 00:39:52 -06:00 committed by GitHub
parent ca6161933d
commit 6fd891b636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,13 @@
//module.exports = {
// name: "setnick",
// description: "Set yours or another users nickname."
// execute(client, message, args) {
const { DiscordAPIError } = require("discord.js")
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")
}}}