This commit is contained in:
Noah committed 2021-10-27 19:20:10 -05:00
1 parent 3df591ec52
commit 78dea91e1d
1 file changed
+9 -9
+9 -9
View File
@@ -23,8 +23,9 @@ module.exports = new Command({
permission: "SEND_MESSAGES",
async run(interaction) {
const suggestChannel = client.channels.cache.get(supportbot.SuggestionChannel);
const suggestChannel = client.channels.cache.get(
supportbot.SuggestionChannel
);
const NoChannel = new Discord.MessageEmbed()
.setTitle("Missing Channel!")
@@ -33,8 +34,7 @@ module.exports = new Command({
if (!suggestChannel) return interaction.reply({ embeds: [NoChannel] });
let suggestion =
interaction.options.getString("suggestion");
let suggestion = interaction.options.getString("suggestion");
const SuggestEmbed = new Discord.MessageEmbed()
.addField("Suggestion", suggestion, true)
@@ -43,16 +43,16 @@ module.exports = new Command({
.setFooter(supportbot.EmbedFooter, interaction.user.displayAvatarURL())
.setColor(supportbot.EmbedColour);
suggestChannel.reply({ embeds: [SuggestEmbed ]})
suggestChannel.reply({ embeds: [SuggestEmbed] });
const Submitted = new Discord.MessageEmbed()
.setTitle("Suggestion Submitted!")
.setDescription(`:white_check_mark: You have successfully submitted a suggestion.`)
.setDescription(
`:white_check_mark: You have successfully submitted a suggestion.`
)
.addField("Sent to:", `<#${suggestChannel.id}>`)
.setColor(supportbot.WarningColour);
return interaction.reply({ embeds: [Submitted] })
return interaction.reply({ embeds: [Submitted] });
},
});