Skip to content

fix: exclude external emojis from metrics - #1608

Open
Aaqibhafeezkhan wants to merge 1 commit into
Together-Java:developfrom
Aaqib-OSS:fix/exclude-external-emojis-from-metrics
Open

Aaqibhafeezkhan wants to merge 1 commit into
Together-Java:developfrom
Aaqib-OSS:fix/exclude-external-emojis-from-metrics

Conversation

@Aaqibhafeezkhan

Copy link
Copy Markdown

Summary

Fixes #1453.

  • Exclude external custom emojis from message usage metrics.
  • Exclude external custom emojis from reaction usage metrics.
  • Preserve tracking for emojis belonging to the current guild.
  • Add regression tests covering local and external emojis, Unicode reactions, webhook messages, and non-guild events.

Testing

  • Added unit tests for message and reaction tracking.
  • Gradle test execution pending.

Count custom emojis only when they belong to the guild where the message or reaction was sent.

Signed-off-by: Aaqibhafeez Khan <githubaaqibhafeezkhan@gmail.com>
@Aaqibhafeezkhan
Aaqibhafeezkhan requested a review from a team as a code owner November 26, 2026 13:24
@CLAassistant

CLAassistant commented Nov 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Aaqibhafeezkhan Aaqibhafeezkhan left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the implementation against #1453.

  • Message tracking now excludes custom emojis that do not belong to the current guild.
  • Reaction tracking applies the same filtering.
  • Unicode reactions, webhook messages and non-guild events are handled without recording metrics.
  • Added regression tests covering local and external emojis across both message and reaction events.

The change is limited to the emoji tracking listener and its unit tests. Historical metric records remain untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude External Emojis from Metrics

2 participants