Slash commands/application commands #93
Labels
changes: api
modifies behavior of the public API
enhancement
something doesn't happen that should
version: major
semver-major, involves breaking change
Milestone
I've started messing around with the structures for application commands and it seems pretty viable to integrate them into Yuuko, though I'm not exactly sure how much of the existing
Command
structure they can share if any. Here's my initial notes.Key differences and some thoughts on how we could unify the two structures:
createMessage
exist on both structures in Eris, which helps, but ultimately there's no working around this differenceSo essentially I think what I want is a new
Command
-like class that can handle app commands as well as traditional commands, more or less providing a compatibility layer between application commands and text-based commands.Something absolutely necessary for supporting application commands: When commands are registered to the client, the client is responsible for verifying that the commands exist in the right place on the server and updating things if not. Consumers shouldn't have to worry about posting to the API to update their commands when changes are made, that's the library's job.
The text was updated successfully, but these errors were encountered: