Skip to content

Commit

Permalink
Fix join (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazukazu123123 authored May 18, 2023
1 parent a81519e commit 5e51cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guildCtx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class GuildContext {
}

async join(voiceChannel: VoiceChannel, readChannel: GuildTextBasedChannel) {
const workerId = (await this.standbyBots)[0]
const workerId = (await this.standbyBots).sort()[0]
if (workerId === undefined) {
throw Error('No worker')
}
Expand Down

0 comments on commit 5e51cfa

Please sign in to comment.