Updated interfacecs

This commit is contained in:
2024-01-18 15:34:55 +01:00
parent 4cfe877feb
commit 847a8663d8
71 changed files with 207 additions and 79 deletions

View File

@@ -3,13 +3,10 @@ import { Autocomplete } from "interfaces"
export = {
name: "unban",
description: "Unban a user from the server",
type: "autocomplete",
async execute(interaction) {
const focusedOption = interaction.options.getFocused(true)
if (focusedOption.name !== "user") {
return
}
if (focusedOption.name !== "user") return
if (focusedOption.value === "") {
await interaction.respond([

View File

@@ -22,7 +22,6 @@ import { Button } from "interfaces"
export = {
name: "checkstats",
description: "Check your stats.",
type: "button",
async execute(interaction) {
await interaction.deferReply()

View File

@@ -21,7 +21,6 @@ import { getGuild } from "utils/Hypixel"
export = {
name: "guildapplicationaccept",
description: "Accept a guild application.",
type: "button",
async execute(interaction) {
await interaction.deferReply()

View File

@@ -9,7 +9,6 @@ import { Button } from "interfaces"
export = {
name: "guildapplicationdeny",
description: "Deny a guild application.",
type: "button",
async execute(interaction) {
const modal = new ModalBuilder()

View File

@@ -19,7 +19,6 @@ import { Button } from "interfaces"
export = {
name: "guildapply",
description: "Guild application button.",
type: "button",
async execute(interaction) {
const user = interaction.member as GuildMember

View File

@@ -32,7 +32,6 @@ const guildRoles = [
module.exports = {
name: "guildinactivitylog",
description: "Configure the bot.",
type: "button",
async execute(interaction) {
const guild = interaction.guild!

View File

@@ -3,7 +3,6 @@ import { Button } from "interfaces"
export = {
name: "inactiveapplicationaccept",
description: "Accept an inactivity application.",
type: "button",
async execute(interaction) {
await interaction.reply({

View File

@@ -3,7 +3,6 @@ import { Button } from "interfaces"
export = {
name: "inactiveapplicationdeny",
description: "Denies an inactivity application.",
type: "button",
async execute(interaction) {
await interaction.reply({

View File

@@ -6,7 +6,6 @@ import { Button } from "interfaces"
export = {
name: "staffapplicationaccept",
description: "Accept a staff application.",
type: "button",
async execute(interaction) {
await interaction.deferReply()

View File

@@ -9,7 +9,6 @@ import { Button } from "interfaces"
export = {
name: "staffapplicationdeny",
description: "Deny a guild application.",
type: "button",
async execute(interaction) {
const modal = new ModalBuilder()

View File

@@ -20,7 +20,6 @@ import env from "utils/Env"
export = {
name: "staffapply",
description: "Apply for the staff team.",
type: "button",
async execute(interaction) {
const user = interaction.member as GuildMember

View File

@@ -9,7 +9,6 @@ import { Button } from "interfaces"
export = {
name: "verify",
description: "Configure the bot.",
type: "button",
async execute(interaction) {
const modal = new ModalBuilder()

View File

@@ -6,7 +6,6 @@ import { Button } from "interfaces"
export = {
name: "waitinglistupdate",
description: "Update the waiting list.",
type: "button",
async execute(interaction) {
await interaction.deferReply({ ephemeral: true })

View File

@@ -13,7 +13,6 @@ import { Modal } from "interfaces"
export = {
name: "denyreasonbox",
description: "Deny reason box.",
type: "modal",
async execute(interaction) {
await interaction.deferReply()

View File

@@ -11,7 +11,6 @@ import { Modal } from "interfaces"
export = {
name: "staffdenyreasonbox",
description: "Deny reason box.",
type: "modal",
async execute(interaction) {
await interaction.deferReply()

View File

@@ -19,7 +19,6 @@ import { GuildMember } from "discord.js"
export = {
name: "verifybox",
description: "Verify box.",
type: "modal",
async execute(interaction) {
await interaction.deferReply({ ephemeral: true })