Added @params options to buttons

This commit is contained in:
2023-11-15 18:14:04 +01:00
parent c516c738a4
commit cf5f8be29f
12 changed files with 24 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ module.exports = {
description: 'Check your stats.', description: 'Check your stats.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
await interaction.deferReply(); await interaction.deferReply();

View File

@@ -10,6 +10,8 @@ module.exports = {
description: 'Accept a guild application.', description: 'Accept a guild application.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
await interaction.deferReply(); await interaction.deferReply();

View File

@@ -6,6 +6,8 @@ module.exports = {
description: 'Deny a guild application.', description: 'Deny a guild application.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const modal = new ModalBuilder() const modal = new ModalBuilder()

View File

@@ -14,6 +14,8 @@ module.exports = {
description: 'Guild application button.', description: 'Guild application button.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const user = interaction.user; const user = interaction.user;

View File

@@ -10,6 +10,8 @@ module.exports = {
description: "Configure the bot.", description: "Configure the bot.",
type: "button", type: "button",
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const guild = interaction.guild; const guild = interaction.guild;
const user = interaction.user; const user = interaction.user;

View File

@@ -3,6 +3,8 @@ module.exports = {
description: "Accept an inactivity application.", description: "Accept an inactivity application.",
type: "button", type: "button",
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
await interaction.reply({ content: "This button is currently disabled.", ephemeral: true }); await interaction.reply({ content: "This button is currently disabled.", ephemeral: true });

View File

@@ -3,6 +3,8 @@ module.exports = {
description: "Denies an inactivity application.", description: "Denies an inactivity application.",
type: "button", type: "button",
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
await interaction.reply({ content: "This button is currently disabled.", ephemeral: true }); await interaction.reply({ content: "This button is currently disabled.", ephemeral: true });

View File

@@ -7,6 +7,8 @@ module.exports = {
description: 'Accept a staff application.', description: 'Accept a staff application.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const user = interaction.user; const user = interaction.user;

View File

@@ -5,6 +5,8 @@ module.exports = {
description: 'Deny a guild application.', description: 'Deny a guild application.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const modal = new ModalBuilder() const modal = new ModalBuilder()

View File

@@ -15,6 +15,8 @@ module.exports = {
description: 'Apply for the staff team.', description: 'Apply for the staff team.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const user = interaction.user; const user = interaction.user;

View File

@@ -6,6 +6,8 @@ module.exports = {
description: 'Configure the bot.', description: 'Configure the bot.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
const modal = new ModalBuilder() const modal = new ModalBuilder()

View File

@@ -9,6 +9,8 @@ module.exports = {
description: 'Update the waiting list.', description: 'Update the waiting list.',
type: 'button', type: 'button',
/** @param {import('discord.js').ButtonInteraction} interaction */
async execute(interaction) { async execute(interaction) {
await interaction.deferReply({ ephemeral: true }); await interaction.deferReply({ ephemeral: true });