Skip to content

Commit 44d50a7

Browse files
author
Joan Reyero
authored
Added a filter for the deleted users (#911)
1 parent b441530 commit 44d50a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

backend/src/serverless/integrations/services/integrations/discordIntegrationService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,12 @@ export class DiscordIntegrationService extends IntegrationServiceBase {
566566
[PlatformType.DISCORD]: avatarUrl,
567567
},
568568
}),
569+
// Add isBot attribute for deleted users to exclude from search. Add if username contains Deleted User
570+
...(username.includes('Deleted User') && {
571+
[MemberAttributeName.IS_BOT]: {
572+
[PlatformType.DISCORD]: true,
573+
},
574+
}),
569575
},
570576
},
571577
score: DiscordGrid.message.score,

0 commit comments

Comments
 (0)