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

feat: commandhandler now has functions to edit/get/delete responses #1199

Closed
wants to merge 3 commits into from

Conversation

Jaskowicz1
Copy link
Contributor

This PR adds functions to dpp::commandhandler to allow users to edit, get, and delete, responses. Whilst dpp::commandhandler is deprecated, we still have a good few people using it.

Code change checklist

  • I have ensured that all methods and functions are fully documented using doxygen style comments.
  • My code follows the coding style guide.
  • I tested that my change works before raising the PR.
  • I have ensured that I did not break any existing API calls.
  • I have not built my pull request using AI, a static analysis tool or similar without any human oversight.

Copy link

netlify bot commented Jul 14, 2024

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit a2fd32a
🔍 Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/669a2c090044a900081dba7b
😎 Deploy Preview https://deploy-preview-1199--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added documentation Improvements or additions to documentation code Improvements or additions to code. labels Jul 14, 2024
thinking(source, ephemeral, callback);
}

void commandhandler::edit_response(const message &m, command_source source, command_completion_event_t callback) {
Copy link
Contributor

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) {
Copy link
Contributor

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

@braindigitalis
Copy link
Contributor

any movement on this?

@braindigitalis braindigitalis added the wontfix This will not be worked on label Oct 8, 2024
@Jaskowicz1
Copy link
Contributor Author

Closing, we are officially deprecating command handler so we should not support new features.

@Jaskowicz1 Jaskowicz1 closed this Oct 8, 2024
@braindigitalis braindigitalis deleted the commandhandler_updates branch October 11, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Improvements or additions to code. documentation Improvements or additions to documentation wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants