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
This commit is contained in:
8au
2023-07-23 15:54:34 -05:00
committed by GitHub
parent b2091adaf2
commit d0db3420f7
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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,
-1
View File
@@ -16,7 +16,6 @@ const baseMessage: Partial<Message> & 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)
@@ -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',