Ran prettier

This commit is contained in:
Noah committed 2021-10-25 00:02:23 -05:00
1 parent bd26162e4a
commit 55a42b88ae
4 files changed
+15 -23

No files matched your search

+13 -19
View File
@@ -15,22 +15,20 @@ module.exports = new Command({
description: cmdconfig.EmbedCommandDesc, description: cmdconfig.EmbedCommandDesc,
slashCommandOptions: [ slashCommandOptions: [
{ {
name: "title", name: "title",
description: "Embed Title", description: "Embed Title",
type: "STRING", type: "STRING",
}, },
{ {
name: "message", name: "message",
description: "Embed Message", description: "Embed Message",
type: "STRING", type: "STRING",
}, },
], ],
permission: "SEND_MESSAGES", permission: "SEND_MESSAGES",
async run(interaction) { async run(interaction) {
let SupportStaff = let SupportStaff =
interaction.guild.roles.cache.find( interaction.guild.roles.cache.find(
(SupportTeam) => SupportTeam.name === supportbot.Staff (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(SupportStaff.id) ||
interaction.member.roles.cache.has(Admins.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 EmbedMsg = new Discord.MessageEmbed()
const EmbedSubject = interaction.options.getString("message") .setTitle(EmbedTitle)
.setDescription(EmbedSubject);
const EmbedMsg = new Discord.MessageEmbed()
.setTitle(EmbedTitle)
.setDescription(EmbedSubject)
interaction.reply({
embeds: [EmbedMsg],
});
interaction.reply({
embeds: [EmbedMsg],
});
} else { } else {
return interaction.reply({ embeds: [NoPerms] }); return interaction.reply({ embeds: [NoPerms] });
} }
}, },
}); });
-2
View File
@@ -35,5 +35,3 @@ InfoCommandDesc: "Get information about the brand."
PingCommandDesc: "Pong!" PingCommandDesc: "Pong!"
HelpCommandDesc: "Get a list of all the commands." HelpCommandDesc: "Get a list of all the commands."
EmbedCommandDesc: "Send a message as an embed." EmbedCommandDesc: "Send a message as an embed."
+1 -1
View File
@@ -18,7 +18,7 @@ SupportBot_Version: "7.2 pre-3"
Name: "SupportBot" Name: "SupportBot"
Prefix: "!" # Everything uses the new Slash (/) Commands feature! Prefix: "!" # Everything uses the new Slash (/) Commands feature!
Token: "BOT_TOKEN" Token: "ODUwNTMxNzExNDkwMzI2NTI5.YLrFYg.2qDnbXB5sSEmK0HEfo5kz1LdFlk"
# ------------------------- # -------------------------
# Activity Configuration # Activity Configuration
+1 -1
View File
@@ -1 +1 @@
TicketPanelID: '' TicketPanelID: ""