-
-
Notifications
You must be signed in to change notification settings - Fork 482
Add slash command attachment example #965
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
Add slash command attachment example #965
Conversation
also add missing SlashCommandOptionType to __all__ in enums.py
This reverts commit f6a9f1a.
also add missing SlashCommandOptionType to __all__ in enums.py
Co-authored-by: Middledot <78228142+Middledot@users.noreply.github.com>
@krittick why not just add this to the options example? |
Since you have to do some additional processing to make it work (e.g. |
it's still a small enough example where it would be better there |
Sure, I've updated it now. |
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
Summary
This adds an example for adding an attachment as a slash command option type.
This also fixes the missing
SlashCommandOptionType
reference in__all__
in enums.pyChecklist
type: ignore
comments were used, a comment is also left explaining why