nyx

The first CODM discrod bot -- cath.exe Template
git clone https://codeberg.org/night0721/nyx
Log | Files | Refs | LICENSE

suggest.js (1232B)


      1 const { EmbedBuilder } = require("discord.js");
      2 module.exports = {
      3   name: "suggest",
      4   description: "Make a suggestion of the bot",
      5   category: "Utilities",
      6   options: [
      7     {
      8       type: 3,
      9       name: "suggestion",
     10       description: "The suggestion",
     11       required: true,
     12     },
     13   ],
     14   run: async (client, interaction, args) => {
     15     client.channels.cache.get(client.config.Suggestion).send({
     16       embeds: [
     17         new EmbedBuilder()
     18           .setAuthor({
     19             name: interaction.user.tag,
     20             iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
     21           })
     22           .setTitle("New Suggestion")
     23           .setDescription(args[0])
     24           .setColor("Orange")
     25           .setTimestamp(),
     26       ],
     27     });
     28     interaction.followUp({
     29       embeds: [
     30         new EmbedBuilder()
     31           .setTitle("SUCCESS!")
     32           .setDescription(
     33             "You have sent a suggestion.\nPlease wait for us to review it"
     34           )
     35           .setColor("Green")
     36           .setFooter({
     37             text: `Made by ${client.author}`,
     38             iconURL: client.user.displayAvatarURL({ dynamic: true }),
     39           })
     40           .setTimestamp(),
     41       ],
     42     });
     43   },
     44 };