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:
2023-11-15 17:23:16 +00:00
35 changed files with 49 additions and 22 deletions

View File

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

View File

@@ -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();

View File

@@ -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()

View File

@@ -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;

View File

@@ -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;

View File

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

View File

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

View File

@@ -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;

View File

@@ -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()

View File

@@ -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;

View File

@@ -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()

View File

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

View File

@@ -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;

View File

@@ -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"));