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

Fix persistent notes #12

Merged
merged 1 commit into from
Jul 23, 2023
Merged

Fix persistent notes #12

merged 1 commit into from
Jul 23, 2023

Conversation

khakers
Copy link
Collaborator

@khakers khakers commented Jul 21, 2023

The code here is incredibly cursed and overrides classes in internal discord.py API. it still does this.

All I've done is updated the function signatures and made some of the data slightly better by turning it into a typed dict of the correct type.

A proper fix would require touching core components of modmail (send function, and everything that uses it) in ways I really don't want to do.

upgrade signature of note code state store_user method to match expected discord.py method

use a typed checked dict for author instead of making a declaring a class in a for loop that replicates a different type. hopefully a type checker would raise warnings the next time one of these changes
@netlify
Copy link

netlify bot commented Jul 21, 2023

Deploy Preview for modmail-docs canceled.

Name Link
🔨 Latest commit e7635f1
🔍 Latest deploy log https://app.netlify.com/sites/modmail-docs/deploys/64b9e480fb9f52000883c444

@raidensakura raidensakura merged commit e7635f1 into raidensakura:develop Jul 23, 2023
5 of 11 checks passed
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