Skip to content

Commit

Permalink
fix(deleteQueueTimeout): Fix duration message (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 authored Jan 15, 2022
1 parent b3c2103 commit 6996b23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/events/VoiceStateUpdateEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export class VoiceStateUpdateEvent extends BaseEvent {
queue.oldMusicMessage = null; queue.oldVoiceStateUpdateMessage = null;
queue.textChannel?.send({
embeds: [
createEmbed("error", this.client.lang.MUSIC_DELETEQUEUETIMEOUT_WAS_DELETED(Number(duration)))
createEmbed("error", this.client.lang.MUSIC_DELETEQUEUETIMEOUT_WAS_DELETED(duration))
.setTitle(this.client.lang.MUSIC_DELETEQUEUETIMEOUT_EMBED_TITLE())
]
}).catch(e => this.client.logger.error(e));
}, timeout);
queue.textChannel?.send({
embeds: [
createEmbed("warn", this.client.lang.MUSIC_DELETEQUEUETIMEOUT_PAUSED(Number(duration)))
createEmbed("warn", this.client.lang.MUSIC_DELETEQUEUETIMEOUT_PAUSED(duration))
.setTitle(this.client.lang.MUSIC_DELETEQUEUETIMEOUT_PAUSED_EMBED_TITLE())
]
}).then(m => queue.oldVoiceStateUpdateMessage = m.id).catch(e => this.client.logger.error(e));
Expand Down
4 changes: 2 additions & 2 deletions src/langs/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export const lang = {

// VoiceStateUpdateEvent
BOT_DISCONNECTED_FROM_VOICE: () => "I was disconnected from the voice channel, the queue will be deleted",
MUSIC_DELETEQUEUETIMEOUT_WAS_DELETED: (duration: number) => `**${duration}** have passed and there is no one who joins my voice channel, the queue was deleted.`,
MUSIC_DELETEQUEUETIMEOUT_WAS_DELETED: (duration: string) => `**${duration}** have passed and there is no one who joins my voice channel, the queue was deleted.`,
MUSIC_DELETEQUEUETIMEOUT_EMBED_TITLE: () => "⏹ Queue deleted.",
MUSIC_DELETEQUEUETIMEOUT_PAUSED: (duration: number) => stripIndent(`
MUSIC_DELETEQUEUETIMEOUT_PAUSED: (duration: string) => stripIndent(`
Everyone has left from my voice channel, to save resources, the queue was paused.
If there's no one who joins my voice channel in the next **${duration}**, the queue will be deleted.
`),
Expand Down
4 changes: 2 additions & 2 deletions src/langs/ja-JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export const lang = {

// VoiceStateUpdateEvent
BOT_DISCONNECTED_FROM_VOICE: () => "音声チャンネルから切断されたため、キューを削除しました。",
MUSIC_DELETEQUEUETIMEOUT_WAS_DELETED: (duration: number) => `**${duration}** が経過し、私の音声チャネルに人がいなかったため、キューは削除されました。`,
MUSIC_DELETEQUEUETIMEOUT_WAS_DELETED: (duration: string) => `**${duration}** が経過し、私の音声チャネルに人がいなかったため、キューは削除されました。`,
MUSIC_DELETEQUEUETIMEOUT_EMBED_TITLE: () => "⏹ キューを削除しました。",
MUSIC_DELETEQUEUETIMEOUT_PAUSED: (duration: number) => stripIndent(`
MUSIC_DELETEQUEUETIMEOUT_PAUSED: (duration: string) => stripIndent(`
私の音声チャネルから皆が去ってしまったので、リソースを節約するために、キューは一時停止されました。
**${duration}**の間に私の音声チャンネルに参加する人がいなければ、キューは削除されます。
`),
Expand Down

0 comments on commit 6996b23

Please sign in to comment.