Updated all files to new interfaces

This commit is contained in:
2024-02-16 16:03:04 +01:00
parent 137401630e
commit 769c3d12ed
77 changed files with 168 additions and 168 deletions

View File

@@ -1,5 +1,5 @@
import { QueryType, useMainPlayer } from "discord-player"
import { Autocomplete } from "interfaces"
import { IAutocomplete } from "interfaces"
export = {
name: "music",
@@ -29,4 +29,4 @@ export = {
await interaction.respond(results.slice(0, 25)).catch()
}
} as Autocomplete
} as IAutocomplete

View File

@@ -1,4 +1,4 @@
import { Autocomplete } from "interfaces"
import { IAutocomplete } from "interfaces"
export = {
name: "unban",
@@ -28,4 +28,4 @@ export = {
console.log(err)
})
}
} as Autocomplete
} as IAutocomplete

View File

@@ -2,7 +2,7 @@ import { embedColor, devMessage } from "config/options"
import guildapp from "schemas/guildAppSchema"
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "checkstats",
@@ -176,4 +176,4 @@ export = {
}]
})
}
} as Button
} as IButton

View File

@@ -5,7 +5,7 @@ import mongoose from "mongoose"
import guildapp from "schemas/guildAppSchema"
import waitingList from "schemas/waitinglistSchema"
import { waitingListRole } from "config/roles"
import { Button } from "interfaces"
import { IButton } from "interfaces"
import { getGuild } from "utils/Hypixel"
export = {
@@ -136,4 +136,4 @@ export = {
)
}
}
} as Button
} as IButton

View File

@@ -1,5 +1,5 @@
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "guildapplicationdeny",
@@ -21,4 +21,4 @@ export = {
)
await interaction.showModal(modal)
}
} as Button
} as IButton

View File

@@ -6,7 +6,7 @@ import { guildRole } from "config/roles"
import { getUUID } from "utils/Hypixel"
import mongoose from "mongoose"
import guildapp from "schemas/guildAppSchema"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "guildapply",
@@ -507,4 +507,4 @@ export = {
]
})
}
} as Button
} as IButton

View File

@@ -3,7 +3,7 @@ import { gm, manager, moderator, beast, member, guildStaff, guildRole } from "co
import { ignM, smallM, largeM } from "config/limitmessages"
import { inactivity } from "config/questions"
import { embedColor, inactivityLogChannel } from "config/options"
import { Button } from "interfaces"
import { IButton } from "interfaces"
import { getIGN } from "utils/Hypixel"
const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole]
@@ -281,4 +281,4 @@ export = {
]
})
}
} as Button
} as IButton

View File

@@ -1,4 +1,4 @@
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "inactiveapplicationaccept",
@@ -10,4 +10,4 @@ export = {
ephemeral: true
})
}
} as Button
} as IButton

View File

@@ -1,4 +1,4 @@
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "inactiveapplicationdeny",
@@ -10,4 +10,4 @@ export = {
ephemeral: true
})
}
} as Button
} as IButton

View File

@@ -1,7 +1,7 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
import { embedColor } from "config/options"
import staffapp from "schemas/staffAppSchema"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "staffapplicationaccept",
@@ -60,4 +60,4 @@ export = {
}]
})
}
} as Button
} as IButton

View File

@@ -1,5 +1,5 @@
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "staffapplicationdeny",
@@ -15,10 +15,10 @@ export = {
.setLabel("Deny Reason")
.setCustomId("staffdenyreason")
.setStyle(TextInputStyle.Paragraph)
.setPlaceholder( "Enter a reason for denying the application")
.setPlaceholder("Enter a reason for denying the application")
.setRequired(false)
)
)
await interaction.showModal(modal)
}
} as Button
} as IButton

View File

@@ -7,7 +7,7 @@ import mongoose from "mongoose"
import staffapp from "schemas/staffAppSchema"
import settings from "schemas/settingsSchema"
import { getUUID } from "utils/Hypixel"
import { Button } from "interfaces"
import { IButton } from "interfaces"
import env from "utils/Env"
export = {
@@ -441,4 +441,4 @@ export = {
})
}
}
} as Button
} as IButton

View File

@@ -1,5 +1,5 @@
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "verify",
@@ -23,4 +23,4 @@ export = {
)
await interaction.showModal(modal)
}
} as Button
} as IButton

View File

@@ -1,7 +1,7 @@
import waitinglist from "schemas/waitinglistSchema"
import { getGuild } from "utils/Hypixel"
import { hypixelGuildID } from "config/options"
import { Button } from "interfaces"
import { IButton } from "interfaces"
export = {
name: "waitinglistupdate",
@@ -53,4 +53,4 @@ export = {
await interaction.editReply("Updated the waiting list")
}
} as Button
} as IButton

View File

@@ -1,7 +1,7 @@
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js"
import { embedColor } from "config/options"
import guildapp from "schemas/guildAppSchema"
import { Modal } from "interfaces"
import { IModal } from "interfaces"
export = {
name: "denyreasonbox",
@@ -84,4 +84,4 @@ export = {
embeds: responseEmbeds
})
}
} as Modal
} as IModal

View File

@@ -1,7 +1,7 @@
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
import { embedColor } from "config/options"
import staffapp from "schemas/staffAppSchema"
import { Modal } from "interfaces"
import { IModal } from "interfaces"
export = {
name: "staffdenyreasonbox",
@@ -60,4 +60,4 @@ export = {
}]
})
}
} as Modal
} as IModal

View File

@@ -3,7 +3,7 @@ import { embedColor, hypixelGuildID, devMessage } from "config/options"
import verify from "schemas/verifySchema"
import mongoose from "mongoose"
import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles"
import { Modal } from "interfaces"
import { IModal } from "interfaces"
import { GuildMember } from "discord.js"
export = {
@@ -145,4 +145,4 @@ export = {
})
}
}
} as Modal
} as IModal