diff --git a/src/events/player/QueueEnd.ts b/src/events/player/QueueEnd.ts index 8a0a63863..83d72f57e 100644 --- a/src/events/player/QueueEnd.ts +++ b/src/events/player/QueueEnd.ts @@ -14,7 +14,7 @@ export default class QueueEnd extends Event { const guild = this.client.guilds.cache.get(player.guildId); if (!guild) return; const locale = await this.client.db.getLanguage(player.guildId); - await updateSetup(this.client, player.guildId, locale); + await updateSetup(this.client, guild, locale); const messageId = player.get('messageId'); if (!messageId) return; diff --git a/src/utils/SetupSystem.ts b/src/utils/SetupSystem.ts index 8f0cb3907..6ee102d8a 100644 --- a/src/utils/SetupSystem.ts +++ b/src/utils/SetupSystem.ts @@ -1,4 +1,4 @@ -import { type ColorResolvable, EmbedBuilder, type Message, type TextChannel } from 'discord.js'; +import { type ColorResolvable, EmbedBuilder, type Guild, type Message, type TextChannel } from 'discord.js'; import type { Player, Track } from 'lavalink-client'; import { T } from '../structures/I18n'; @@ -203,7 +203,7 @@ async function trackStart( } } -async function updateSetup(client: Lavamusic, guild: any, locale: string): Promise { +async function updateSetup(client: Lavamusic, guild: Guild, locale: string): Promise { const setup = await client.db.getSetup(guild.id); let m: Message | undefined; if (setup?.textId) {