const { CommandInteraction, Client } = require('discord.js'); const { SlashCommandBuilder } = require('discord.js'); const Discord = require('discord.js'); module.exports = { data: new SlashCommandBuilder() .setName('thanks') .setDescription('Get an overview of the thanks system') .addSubcommand(subcommand => subcommand .setName('help') .setDescription('Get information about the thanks category commands') ) .addSubcommand(subcommand => subcommand .setName('check') .setDescription('See your thanks') .addUserOption(option => option.setName('user').setDescription('Select a user').setRequired(true)) ) .addSubcommand(subcommand => subcommand .setName('thanks') .setDescription('Thanks a user') .addUserOption(option => option.setName('user').setDescription('Select a user').setRequired(true)) ) , /** * @param {Client} client * @param {CommandInteraction} interaction * @param {String[]} args */ run: async (client, interaction, args) => { client.loadSubcommands(client, interaction, args); }, };