Discord-Bot/src/interactions/Command/thanks.js
2022-12-09 19:54:59 +01:00

39 lines
No EOL
1.3 KiB
JavaScript

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);
},
};