Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework reaction storage #105

Merged
merged 5 commits into from
Mar 20, 2022
Merged

Conversation

Edwinexd
Copy link
Contributor

@Edwinexd Edwinexd commented Mar 19, 2022

Describe the PR changes
Due to discord inconsistencies will emoji.animated not always be provided making RL fail reaction lookups in certain scenarios (Discord further notes notes the possibility of emoji.name inconsistencies). This PR makes reaction light store custom (animated) emojis id instead of their full string in the DB, e.g:
Before: <:ilnox:928075725188263987>
After: 928075725188263987

Mention any issues that this PR would close.
-

Copy link
Owner

@eibex eibex left a comment

Choose a reason for hiding this comment

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

Made a quick review. Tomorrow I will test this.

Thanks for the help!

cogs/utils/sanitizing.py Outdated Show resolved Hide resolved
@eibex eibex merged commit 7ab5bb4 into eibex:master Mar 20, 2022
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.

2 participants