From d0db3420f7e9b5ae7beab1e3132acb4a94d5f7f5 Mon Sep 17 00:00:00 2001 From: 8au <54277586+8auu@users.noreply.github.com> Date: Sun, 23 Jul 2023 21:54:34 +0100 Subject: [PATCH] fix: 'INVITE_DELETE' event now uses 'handleInviteDelete' (previously used 'handleInviteCreate') (#3064) * fix: Fixed an issue which would cause the 'INVITE_DELETE' event to be passed into 'INVITE_CREATE'. * chore: updated guild counts for appy and ai image generator * chore: removed duplicate line in the message transformer --- packages/bot/src/handlers.ts | 2 +- packages/bot/src/transformers/message.ts | 1 - website/src/components/home/reviews/index.tsx | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/bot/src/handlers.ts b/packages/bot/src/handlers.ts index e560250f2..d2c0f8642 100644 --- a/packages/bot/src/handlers.ts +++ b/packages/bot/src/handlers.ts @@ -41,7 +41,7 @@ export function createBotGatewayHandlers( INTEGRATION_UPDATE: options.INTEGRATION_UPDATE ?? handlers.handleIntegrationUpdate, INTEGRATION_DELETE: options.INTEGRATION_DELETE ?? handlers.handleIntegrationDelete, INVITE_CREATE: options.INVITE_CREATE ?? handlers.handleInviteCreate, - INVITE_DELETE: options.INVITE_DELETE ?? handlers.handleInviteCreate, + INVITE_DELETE: options.INVITE_DELETE ?? handlers.handleInviteDelete, MESSAGE_CREATE: options.MESSAGE_CREATE ?? handlers.handleMessageCreate, MESSAGE_DELETE_BULK: options.MESSAGE_DELETE_BULK ?? handlers.handleMessageDeleteBulk, MESSAGE_DELETE: options.MESSAGE_DELETE ?? handlers.handleMessageDelete, diff --git a/packages/bot/src/transformers/message.ts b/packages/bot/src/transformers/message.ts index bf9a3fd88..f54b2b63e 100644 --- a/packages/bot/src/transformers/message.ts +++ b/packages/bot/src/transformers/message.ts @@ -16,7 +16,6 @@ const baseMessage: Partial & MessageBase = { return this.flags?.contains(MessageFlags.Crossposted) ?? false }, set crossposted(value: boolean) { - if (!this.flags) return if (!this.flags) return if (value) this.flags.add(MessageFlags.Crossposted) else this.flags.remove(MessageFlags.Crossposted) diff --git a/website/src/components/home/reviews/index.tsx b/website/src/components/home/reviews/index.tsx index 706da1603..fa4cd1c08 100644 --- a/website/src/components/home/reviews/index.tsx +++ b/website/src/components/home/reviews/index.tsx @@ -44,7 +44,7 @@ const reviewList: IReview[] = [ 'https://cdn.discordapp.com/avatars/1032699319368814652/8abbc5911333d3df288ff962a2120d75.png', invite_url: 'https://discord.com/oauth2/authorize?client_id=1032699319368814652&permissions=274877959232&scope=bot%20applications.commands', - guild_count: 50000, + guild_count: 64000, }, developer: { username: '8au', @@ -66,7 +66,7 @@ const reviewList: IReview[] = [ 'https://cdn.discordapp.com/avatars/853327905357561948/a394518e742643f05cc201249d3ae75e.png', invite_url: 'https://discord.com/oauth2/authorize?client_id=853327905357561948&scope=bot&permissions=534925798592', - guild_count: 82000, + guild_count: 100000, }, developer: { username: '8au',