Skip to content

Commit

Permalink
fix(bot/autorecord): fix voice connections not being handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Oct 27, 2024
1 parent 29bcc9c commit 760848d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/bot/src/modules/autorecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default class AutorecordModule extends DexareModule<DexareClient<CraigBot

const error = await recording
.start(parsedRewards, userData?.webapp ?? false)
.then(() => false)
.then(() => (recording.state === RecordingState.ERROR ? recording.stateDescription || 'Unknown error' : false))
.catch((e) => e);

if (error !== false) {
Expand Down

0 comments on commit 760848d

Please sign in to comment.