Merge branch 'dev' into 'main'
Added @params to textinputbox events for easier development and typo fix See merge request illegitimate/illegitimate-bot!49
This commit is contained in:
@@ -10,6 +10,8 @@ module.exports = {
|
||||
description: 'Check your stats.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
@@ -10,6 +10,8 @@ module.exports = {
|
||||
description: 'Accept a guild application.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
@@ -6,6 +6,8 @@ module.exports = {
|
||||
description: 'Deny a guild application.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const modal = new ModalBuilder()
|
||||
|
||||
@@ -14,6 +14,8 @@ module.exports = {
|
||||
description: 'Guild application button.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const user = interaction.user;
|
||||
|
||||
@@ -10,6 +10,8 @@ module.exports = {
|
||||
description: "Configure the bot.",
|
||||
type: "button",
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
const guild = interaction.guild;
|
||||
const user = interaction.user;
|
||||
|
||||
@@ -3,6 +3,8 @@ module.exports = {
|
||||
description: "Accept an inactivity application.",
|
||||
type: "button",
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.reply({ content: "This button is currently disabled.", ephemeral: true });
|
||||
|
||||
@@ -3,6 +3,8 @@ module.exports = {
|
||||
description: "Denies an inactivity application.",
|
||||
type: "button",
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.reply({ content: "This button is currently disabled.", ephemeral: true });
|
||||
|
||||
@@ -7,6 +7,8 @@ module.exports = {
|
||||
description: 'Accept a staff application.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const user = interaction.user;
|
||||
|
||||
@@ -5,6 +5,8 @@ module.exports = {
|
||||
description: 'Deny a guild application.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const modal = new ModalBuilder()
|
||||
|
||||
@@ -15,6 +15,8 @@ module.exports = {
|
||||
description: 'Apply for the staff team.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const user = interaction.user;
|
||||
|
||||
@@ -6,6 +6,8 @@ module.exports = {
|
||||
description: 'Configure the bot.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const modal = new ModalBuilder()
|
||||
|
||||
@@ -9,6 +9,8 @@ module.exports = {
|
||||
description: 'Update the waiting list.',
|
||||
type: 'button',
|
||||
|
||||
/** @param {import('discord.js').ButtonInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply({ ephemeral: true });
|
||||
|
||||
@@ -10,6 +10,8 @@ module.exports = {
|
||||
description: 'Deny reason box.',
|
||||
type: 'modal',
|
||||
|
||||
/** @param {import('discord.js').ModalSubmitInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
if (interaction.type !== InteractionType.ModalSubmit) return;
|
||||
|
||||
@@ -10,6 +10,8 @@ module.exports = {
|
||||
description: 'Deny reason box.',
|
||||
type: 'modal',
|
||||
|
||||
/** @param {import('discord.js').ModalSubmitInteraction} interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
if (interaction.type !== InteractionType.ModalSubmit) return;
|
||||
@@ -17,7 +19,6 @@ module.exports = {
|
||||
|
||||
interaction.deferReply();
|
||||
|
||||
const channel = interaction.channel;
|
||||
const guild = interaction.guild;
|
||||
const reason = interaction.fields.fields.get('staffdenyreason').value || "No reason provided";
|
||||
const embedColor = Number(color.replace("#", "0x"));
|
||||
|
||||
Reference in New Issue
Block a user