Skip to content

Commit

Permalink
chore: debug moving
Browse files Browse the repository at this point in the history
  • Loading branch information
winbergoscar0 committed Aug 29, 2023
1 parent 59b6804 commit 199ab56
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ export class MoveerHelper {
continue;
}

this.rabbitMq.publishMoveMessage({
isPatreon,
guild: user.guild,
guildMember: user,
toVoiceChannel,
});
try {
await user.voice.setChannel(toVoiceChannel);
} catch (cause) {
logger.error({ cause, user, toVoiceChannel }, 'Failed to move user');
errorMessages.push(
`Failed to move ${user} to ${toVoiceChannel} - Missing permissions?`,
);
continue;
}

usersMoved++;
totalUsersMoved++;
}
Expand Down

0 comments on commit 199ab56

Please sign in to comment.