Revamped event handlers
This commit is contained in:
@@ -6,7 +6,6 @@ module.exports = {
|
||||
/** @param { import("discord.js").AutocompleteInteraction } interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
if (interaction.commandName !== "unban") return
|
||||
const focusedOption = interaction.options.getFocused(true)
|
||||
if (focusedOption.name !== "user") return
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { InteractionType, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js")
|
||||
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js")
|
||||
const { color } = require("../../../config/options.json")
|
||||
const guildapp = require("../../schemas/guildAppSchema.js")
|
||||
|
||||
@@ -10,10 +10,6 @@ module.exports = {
|
||||
/** @param { import('discord.js').ModalSubmitInteraction } interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
if (interaction.type !== InteractionType.ModalSubmit) return
|
||||
if (interaction.customId !== "denyreasonbox") return
|
||||
|
||||
interaction.deferReply()
|
||||
|
||||
const guild = interaction.guild
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { InteractionType, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js")
|
||||
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require("discord.js")
|
||||
const { color } = require("../../../config/options.json")
|
||||
const staffapp = require("../../schemas/staffAppSchema.js")
|
||||
|
||||
@@ -10,10 +10,6 @@ module.exports = {
|
||||
/** @param { import('discord.js').ModalSubmitInteraction } interaction */
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
if (interaction.type !== InteractionType.ModalSubmit) return
|
||||
if (interaction.customId !== "staffdenyreasonbox") return
|
||||
|
||||
interaction.deferReply()
|
||||
|
||||
const guild = interaction.guild
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
const { InteractionType } = require("discord.js")
|
||||
const { getUUID, getPlayer, getGuild, getHeadURL } = require("../../utils/utils.js")
|
||||
const { color, hypixelGuildID, devMessage } = require("../../../config/options.json")
|
||||
const verify = require("../../schemas/verifySchema.js")
|
||||
@@ -12,7 +11,6 @@ module.exports = {
|
||||
|
||||
/** @param { import('discord.js').ModalSubmitInteraction } interaction */
|
||||
async execute(interaction) {
|
||||
if (interaction.type !== InteractionType.ModalSubmit) return
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
const user1 = interaction.user
|
||||
|
||||
Reference in New Issue
Block a user