nyx

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

invite.js (1283B)


      1 const { EmbedBuilder } = require("discord.js");
      2 
      3 module.exports = {
      4   name: "invite",
      5   description: "Get bot invite link or get support",
      6   category: "Utilities",
      7 
      8   run: async (client, interaction, args, utils) => {
      9     const embed = new EmbedBuilder()
     10       .setFooter({
     11         text: `Made by ${client.author}`,
     12         iconURL: client.user.displayAvatarURL({ dynamic: true }),
     13       })
     14       .setColor(client.color)
     15       .setTimestamp()
     16       .setAuthor({
     17         name: interaction.user.tag,
     18         iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
     19       })
     20       .setTitle(`Support/Invite`)
     21       .setThumbnail(
     22         "https://github.com/night0721/cath.js/blob/master/util/assets/images/nyx_logo_transparent.webp"
     23       )
     24       .addFields([
     25         {
     26           name: "<a:booster:896527475063025704> **Premium**",
     27           value:
     28             "**You can either boost support server or subscribe to developer's team [Ko-Fi](https://ko-fi.com/cathteam) or gift a nitro to one of the developer team.**",
     29           inline: true,
     30         },
     31       ]);
     32     interaction.followUp({
     33       content: "Please click the buttons below for more information",
     34       embeds: [embed],
     35       components: utils.buttons(client),
     36     });
     37   },
     38 };