Skip to content

Commit

Permalink
don't await voice channel updating (faster)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Mar 10, 2024
1 parent 50775e5 commit 5c12352
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commands/faithful/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,13 @@ export const command: SlashCommand = {
}`;

// modded messes with the percentage so we don't update VCs if it's enabled
if (updateChannels && !checkModded)
await updateVoiceChannel(interaction.client, response.data);
if (updateChannels && !checkModded) updateVoiceChannel(interaction.client, response.data);

// no repo found for the asked pack + edition
if (!response.diffFile)
return resultEmbed.addFields({
name: fieldTitle,
// errors messages are stored in response.results[0] (stupid I know)
// error messages are stored in response.results[0] (stupid I know)
value: response.results[0],
});

Expand Down

0 comments on commit 5c12352

Please sign in to comment.