Skip to content

Commit

Permalink
fix: wrong comparison, 0 is for GuildInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
imnaiyar authored Nov 2, 2024
1 parent 21275fa commit dc93676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/controllers/discord-webhooks.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class WebhookEventController {
if (data.guild) {
description += `\n**Guild:** ${data.guild.name} (\`${data.guild.id}\`)`;
}
if (data.integration_type === 0) {
if (data.integration_type) {
const appl = await this.bot.application.fetch();
description += `\nTotal Authorized: ${appl.approximateUserInstallCount}`;
}
Expand Down

0 comments on commit dc93676

Please sign in to comment.