feat: Create Slash Commands For Avatar Modify Module - #1769
Conversation
jb3
left a comment
There was a problem hiding this comment.
We should use hybrid commands instead of adding a whole new cog for this migration.
The slash command switch should be ultimately change-neutral because we should for the most part just be switching out the command decorators and associated processing. We have prior art for this on most of our bots where we currently accept slash commands.
This makes the ultimate switch to slash-commands only simple, as we just make a final update to the decorator to make it no longer a text command.
Right now this PR introduces a lot of complexity and duplication re-implenenting logic and functionality we already have.
|
My reasoning for creating a new cog is so that if/when it is decided to remove prefix commands all that would be required is to delete the old cog and potentially rename the app command cog. The docs for hybrid commands say
In this PR that would disqualify |
|
|
Relevant Issues
Closes #1768
Description
Created a group of app commands under the name
avatar_modify. The commands mirror the existing avatar modify commands:8bitify,reverse,easterify,pride,spooky,mosaic.The reverse command accepted text as an argument and returned the text reversed. This was moved to a separate top level
reversecommand to avoid overloading commands.The
pride listsubcommand was removed in favor of fuzzy matching autocomplete.Did you: