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
feat(app-cmds): channel, Annotated and Literal annotations #678
feat(app-cmds): channel, Annotated and Literal annotations #678
Conversation
…erride the channel types Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
✅ Deploy Preview for nextcord-gh-action ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Alright, small roadblock: Seems like Python 3.8 doesn't actually have |
It's backported to 3.7 in the |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
…pyright not upset Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
… for the docs github workflow Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
(Wrong button, meant to simply comment) However, otherwise looks good assuming it is tested. |
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
…ngth of exception. Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Co-authored-by: Oliver Wilkes <oliverwilkes2006@icloud.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding forum channel support? Else it seems good to me code-wise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding forum channel support? Else it seems good to me code-wise.
network issue, I cannot seem to delete this comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also as docs/requirements.txt
cannot be used in setup.py as docs/*
is not on PyPI, setup.py
's [docs]
extra needs to be updated with the new dependency.
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
… an undefined way Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
Tested, everything seems to be working from what I can tell. |
…e set. Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
Signed-off-by: Alex Schoenhofen <alexanderschoenhofen@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failing pyright seems unrelated, LGTM
Summary
Closes #589, closes #591, closes #615 and fixes #673
Is a general rewrite of how annotations are handled inside of SlashCommandOption.
None
encountered will count the param as not being required (unless manually specified as required by SlashOption of course.)*Channel
classes.Due to annotations being touchy between Python 3.8 and 3.9/3.10, alongside this being a rewrite of how annotations are processed in slash, this needs thorough testing from a variety of people on those 3 versions of Python
Checklist
task pyright
and fixed the relevant issues.SlashCommandOption.converter
to.converters
as a list due to supporting multipleOptionConverters
due toUnion