Skip to content

Commit

Permalink
fixed [Bug]: Song request channel message don't update after the end …
Browse files Browse the repository at this point in the history
…of a song appujet#732
  • Loading branch information
appujet committed Oct 6, 2024
1 parent 7d3c2a7 commit 639b020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/events/player/QueueEnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined>('messageId');
if (!messageId) return;
Expand Down
4 changes: 2 additions & 2 deletions src/utils/SetupSystem.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -203,7 +203,7 @@ async function trackStart(
}
}

async function updateSetup(client: Lavamusic, guild: any, locale: string): Promise<void> {
async function updateSetup(client: Lavamusic, guild: Guild, locale: string): Promise<void> {
const setup = await client.db.getSetup(guild.id);
let m: Message | undefined;
if (setup?.textId) {
Expand Down

0 comments on commit 639b020

Please sign in to comment.