Added @params options to buttons
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user