From 55a42b88ae4aae9b76a0aa4a2b274151dc9b1d5a Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 25 Oct 2021 00:02:23 -0500 Subject: [PATCH] Ran prettier --- Commands/embed.js | 32 +++++++++++++------------------- Data/commands.yml | 2 -- Data/supportbot.yml | 2 +- Data/ticket-panel-id.yml | 2 +- 4 files changed, 15 insertions(+), 23 deletions(-) diff --git a/Commands/embed.js b/Commands/embed.js index 7b6db55..821c4d8 100644 --- a/Commands/embed.js +++ b/Commands/embed.js @@ -15,22 +15,20 @@ module.exports = new Command({ description: cmdconfig.EmbedCommandDesc, slashCommandOptions: [ { - name: "title", - description: "Embed Title", - type: "STRING", - }, + name: "title", + description: "Embed Title", + type: "STRING", + }, { name: "message", description: "Embed Message", type: "STRING", }, - ], permission: "SEND_MESSAGES", async run(interaction) { - let SupportStaff = interaction.guild.roles.cache.find( (SupportTeam) => SupportTeam.name === supportbot.Staff @@ -57,22 +55,18 @@ module.exports = new Command({ interaction.member.roles.cache.has(SupportStaff.id) || interaction.member.roles.cache.has(Admins.id) ) { + const EmbedTitle = interaction.options.getString("title"); + const EmbedSubject = interaction.options.getString("message"); - const EmbedTitle = interaction.options.getString("title") - const EmbedSubject = interaction.options.getString("message") - - const EmbedMsg = new Discord.MessageEmbed() - .setTitle(EmbedTitle) - .setDescription(EmbedSubject) - - interaction.reply({ - embeds: [EmbedMsg], - }); + const EmbedMsg = new Discord.MessageEmbed() + .setTitle(EmbedTitle) + .setDescription(EmbedSubject); + interaction.reply({ + embeds: [EmbedMsg], + }); } else { - return interaction.reply({ embeds: [NoPerms] }); + return interaction.reply({ embeds: [NoPerms] }); } - }, - }); diff --git a/Data/commands.yml b/Data/commands.yml index 8edc372..4d3b470 100644 --- a/Data/commands.yml +++ b/Data/commands.yml @@ -35,5 +35,3 @@ InfoCommandDesc: "Get information about the brand." PingCommandDesc: "Pong!" HelpCommandDesc: "Get a list of all the commands." EmbedCommandDesc: "Send a message as an embed." - - diff --git a/Data/supportbot.yml b/Data/supportbot.yml index a7f1cee..50b726a 100644 --- a/Data/supportbot.yml +++ b/Data/supportbot.yml @@ -18,7 +18,7 @@ SupportBot_Version: "7.2 pre-3" Name: "SupportBot" Prefix: "!" # Everything uses the new Slash (/) Commands feature! -Token: "BOT_TOKEN" +Token: "ODUwNTMxNzExNDkwMzI2NTI5.YLrFYg.2qDnbXB5sSEmK0HEfo5kz1LdFlk" # ------------------------- # Activity Configuration diff --git a/Data/ticket-panel-id.yml b/Data/ticket-panel-id.yml index 2912e7f..4bb76a5 100644 --- a/Data/ticket-panel-id.yml +++ b/Data/ticket-panel-id.yml @@ -1 +1 @@ -TicketPanelID: '' +TicketPanelID: ""