nyx/command/Utilities/suggest.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-10-26 12:38:28 +02:00
const { EmbedBuilder } = require("discord.js");
2021-09-06 12:38:25 +02:00
module.exports = {
name: "suggest",
description: "Make a suggestion of the bot",
category: "Utilities",
2023-04-02 14:12:53 +02:00
options: [
{
type: 3,
name: "suggestion",
description: "The suggestion",
required: true,
},
],
2021-09-06 12:38:25 +02:00
run: async (client, interaction, args) => {
2023-04-02 14:12:53 +02:00
client.channels.cache.get(client.config.Suggestion).send({
2021-09-06 12:38:25 +02:00
embeds: [
2022-10-26 12:38:28 +02:00
new EmbedBuilder()
2023-04-02 14:12:53 +02:00
.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"
2021-09-06 12:38:25 +02:00
)
2023-04-02 14:12:53 +02:00
.setColor("Green")
2022-10-26 12:38:28 +02:00
.setFooter({
text: `Made by ${client.author}`,
2023-04-02 14:12:53 +02:00
iconURL: client.user.displayAvatarURL({ dynamic: true }),
2022-10-26 12:38:28 +02:00
})
2021-09-06 12:38:25 +02:00
.setTimestamp(),
],
});
},
};