diff --git a/commands/8ball.js b/commands/8ball.js index 1241877..4c324d1 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -18,6 +18,17 @@ module.exports = { var answer = (answers[index]); console.log(args); + if (!question) { + const embed = { + "title": "<:AnitroxError:809651936563429416> Well that happened...", + "description": "You need to specify a question!", + "color": 13632027, + "footer": { + "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + } + } + } const embed = { "title": ":8ball: Anitrox 8 Ball", "description": "Your question: **" + question + "**", @@ -35,5 +46,6 @@ module.exports = { ] }; message.channel.send({ embed }); + } } \ No newline at end of file diff --git a/commands/setnick.js b/commands/setnick.js index dadccff..2a1dd30 100644 --- a/commands/setnick.js +++ b/commands/setnick.js @@ -1,13 +1,13 @@ -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") + 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") - }}} + message.channel.send("no permission") + } +}} \ No newline at end of file