Skip to content

Commit

Permalink
Added a filter for the deleted users (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Reyero authored May 30, 2023
1 parent b441530 commit 44d50a7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,12 @@ export class DiscordIntegrationService extends IntegrationServiceBase {
[PlatformType.DISCORD]: avatarUrl,
},
}),
// Add isBot attribute for deleted users to exclude from search. Add if username contains Deleted User
...(username.includes('Deleted User') && {
[MemberAttributeName.IS_BOT]: {
[PlatformType.DISCORD]: true,
},
}),
},
},
score: DiscordGrid.message.score,
Expand Down

0 comments on commit 44d50a7

Please sign in to comment.