Updated interfacecs
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -22,7 +22,6 @@ import { Button } from "interfaces"
|
||||
export = {
|
||||
name: "checkstats",
|
||||
description: "Check your stats.",
|
||||
type: "button",
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -32,7 +32,6 @@ const guildRoles = [
|
||||
module.exports = {
|
||||
name: "guildinactivitylog",
|
||||
description: "Configure the bot.",
|
||||
type: "button",
|
||||
|
||||
async execute(interaction) {
|
||||
const guild = interaction.guild!
|
||||
|
||||
@@ -3,7 +3,6 @@ import { Button } from "interfaces"
|
||||
export = {
|
||||
name: "inactiveapplicationaccept",
|
||||
description: "Accept an inactivity application.",
|
||||
type: "button",
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.reply({
|
||||
|
||||
@@ -3,7 +3,6 @@ import { Button } from "interfaces"
|
||||
export = {
|
||||
name: "inactiveapplicationdeny",
|
||||
description: "Denies an inactivity application.",
|
||||
type: "button",
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.reply({
|
||||
|
||||
@@ -6,7 +6,6 @@ import { Button } from "interfaces"
|
||||
export = {
|
||||
name: "staffapplicationaccept",
|
||||
description: "Accept a staff application.",
|
||||
type: "button",
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -9,7 +9,6 @@ import { Button } from "interfaces"
|
||||
export = {
|
||||
name: "verify",
|
||||
description: "Configure the bot.",
|
||||
type: "button",
|
||||
|
||||
async execute(interaction) {
|
||||
const modal = new ModalBuilder()
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -13,7 +13,6 @@ import { Modal } from "interfaces"
|
||||
export = {
|
||||
name: "denyreasonbox",
|
||||
description: "Deny reason box.",
|
||||
type: "modal",
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -11,7 +11,6 @@ import { Modal } from "interfaces"
|
||||
export = {
|
||||
name: "staffdenyreasonbox",
|
||||
description: "Deny reason box.",
|
||||
type: "modal",
|
||||
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user