From dc936762516550b9f1fe57594cfeb0d10d14d400 Mon Sep 17 00:00:00 2001 From: Naiyar <137700126+imnaiyar@users.noreply.github.com> Date: Sat, 2 Nov 2024 18:34:19 +0600 Subject: [PATCH] fix: wrong comparison, `0` is for GuildInstall --- src/api/controllers/discord-webhooks.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/controllers/discord-webhooks.controller.ts b/src/api/controllers/discord-webhooks.controller.ts index 15afe97d..145d46e5 100644 --- a/src/api/controllers/discord-webhooks.controller.ts +++ b/src/api/controllers/discord-webhooks.controller.ts @@ -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}`; }