-
-
Notifications
You must be signed in to change notification settings - Fork 168
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: commandhandler now has functions to edit/get/delete responses #1199
Conversation
✅ Deploy Preview for dpp-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
thinking(source, ephemeral, callback); | ||
} | ||
|
||
void commandhandler::edit_response(const message &m, command_source source, command_completion_event_t callback) { |
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.
these all need a check like in thinking, e.g.:
if (!source.command_token.empty() && source.command_id) {
they cant do anything if its a message command.
}); | ||
} | ||
|
||
void commandhandler::edit_original_response(const message &m, command_source source, command_completion_event_t callback) { |
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.
if we're adding these, shouldnt they also work for message commands?
this is the point of commandhandler, and why we dont really add much to it
any movement on this? |
Closing, we are officially deprecating command handler so we should not support new features. |
This PR adds functions to
dpp::commandhandler
to allow users to edit, get, and delete, responses. Whilstdpp::commandhandler
is deprecated, we still have a good few people using it.Code change checklist