More small tweaks

This commit is contained in:
2024-10-20 10:25:48 +02:00
parent b38d14c366
commit a5489eedee
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ export default {
.setContexts(InteractionContextType.Guild), .setContexts(InteractionContextType.Guild),
async execute({ interaction }) { async execute({ interaction }) {
await interaction.deferReply({}) await interaction.deferReply()
const ign = interaction.options.getString("ign")! const ign = interaction.options.getString("ign")!

View File

@@ -35,7 +35,7 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte
const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid) const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid)
const verifiedUsers = await db.query.verifies.findMany({}) const verifiedUsers = await db.query.verifies.findMany()
for (const gmember of guildMembers) { for (const gmember of guildMembers) {
const gmemberuuid = verifiedUsers.find(user => user.userID === gmember.id)?.uuid const gmemberuuid = verifiedUsers.find(user => user.userID === gmember.id)?.uuid

View File

@@ -50,7 +50,7 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
client.on("ready", async (c) => { client.on("ready", async (c) => {
const guildclient = c.guilds.cache.get(env.dev.guildid)! const guildclient = c.guilds.cache.get(env.dev.guildid)!
const currentCommands = await guildclient.commands.fetch({}) const currentCommands = await guildclient.commands.fetch()
if (!currentCommands) return if (!currentCommands) return
const currentCommandsData = currentCommands.map(command => { const currentCommandsData = currentCommands.map(command => {