Ran prettier
This commit is contained in:
1 parent
bd26162e4a
commit
55a42b88ae
4 files changed
+15
-23
No files matched your search
+13
-19
@@ -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] });
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
@@ -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."
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
TicketPanelID: ''
|
||||
TicketPanelID: ""
|
||||
Reference in new issue
Block a user