Enable slash command support for all party cog commands#143
Conversation
Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/445019c6-7cca-4eb2-9510-967e488aec29 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
|
@copilot fix the linting |
…n-existent .hybrid_command()/.hybrid_group() Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/0adbf7cb-0d3b-4316-81f8-9bbc801d31c9 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Fixed in 47dd1bb.
|
|
@copilot can you review this PR and fix and mistakes or issues? |
…lash commands Agent-Logs-Url: https://github.com/psykzz/cogs/sessions/17f33502-c033-4f4f-940f-5c39bdbdd2f6 Co-authored-by: psykzz <1134201+psykzz@users.noreply.github.com>
Reviewed and fixed in 2e01b30. Found one real bug: |
The party cog commands were using the legacy
@commands.command()and@commands.group()decorators, which only support text-based commands. This prevents users from discovering and using party commands through Discord's native slash command interface.Changes
@party.command→@party.hybrid_commandfor all 7 subcommands (create, delete, list, config, description, settime, rename-option)@party.group(name="template")→@party.hybrid_group(name="template")and all 6 template subcommands to@party_template.hybrid_commandAll commands now work with both traditional text commands (
[p]party create) and Discord slash commands (/party create) while maintaining backward compatibility with existing usage patterns.