nyx/command/Utilities/suggest.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-10-31 02:39:28 +01:00
const { EmbedBuilder } = require("discord.js");
module.exports = {
name: "suggest",
description: "Make a suggestion of the bot",
category: "Utilities",
options: [
{
type: 3,
name: "suggestion",
description: "The suggestion",
required: true,
},
],
run: async (client, interaction, args) => {
client.channels.cache.get(client.config.Suggestion).send({
embeds: [
new EmbedBuilder()
.setAuthor({
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
})
.setTitle("New Suggestion")
.setDescription(args[0])
.setColor("Orange")
.setTimestamp(),
],
});
interaction.followUp({
embeds: [
new EmbedBuilder()
.setTitle("SUCCESS!")
.setDescription(
"You have sent a suggestion.\nPlease wait for us to review it"
)
.setColor("Green")
.setFooter({
text: `Made by ${client.author}`,
iconURL: client.user.displayAvatarURL({ dynamic: true }),
})
.setTimestamp(),
],
});
},
};