-
Notifications
You must be signed in to change notification settings - Fork 5
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
v0.5.5 #11
Conversation
- determine which attribute (if required) to return.
- add .coveragerc file to ignore dispike/helpers
- will now look at event functions type hints to determine what to return. This allows for users to simply return DiscordResponse without adding .response
Make a file full of common pytest fixtures for easy access.dispike/tests/test_responses.py Lines 174 to 179 in ded3706
This comment was generated by todo based on a
|
Codecov Report
@@ Coverage Diff @@
## master #11 +/- ##
===========================================
+ Coverage 65.20% 83.10% +17.90%
===========================================
Files 17 13 -4
Lines 684 444 -240
===========================================
- Hits 446 369 -77
+ Misses 238 75 -163
Continue to review full report at Codecov.
|
DiscordResponse
inside your handler. Dispike will either check the function result, or will look at your hint for the function (this is perferred)NotReadyResponse
, this response returns nothing to discord when an interaction is called, but saves the token and ID as well as methodssync_send_callback
andasync_send_callback
that allow for sending aDiscordResponse
later.Autocompletion for creating new models under DiscordCommand, CommandChoice, CommandOption, SubcommandOption, CommandTypes on VSCode is broken. (follow discussion here pydantic/pydantic#650, microsoft/python-language-server#1898). PyCharm appears to work using an external plugin.