You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discord allows everyone to type command snowflakes, as shown here. Serenity's CommandId type is the COMMAND_ID being used here, as far as I can tell.
Currently in poise when registering commands this info is discarded and not stored in the Framework. So poise's Command objects lacks this info, so I cannot have my commands linked from the help menu.
tl;dr : this would be nice if I could do it automatically from the help menu. Even if just as a cmd.format_for_discord() method on poise::Command.
The text was updated successfully, but these errors were encountered:
asibahi
changed the title
Add serenity's CommandId to slash_commands created with poise. For ability to reference it in the help menu
Add serenity's CommandId to slash commands created with poise. To reference it in the help menu
Dec 31, 2023
The framework is immutable after its setup and the framework setup function doesn't exist on the serenity-next branch anymore as we migrate. Even still, I'm not sure how much can be mutated there, if at all.
Registers on startup are optional, handled by the user, storing the result in the framework may be challenging, but I'm not sure if this is entirely out of scope.
Discord allows everyone to type command snowflakes, as shown here. Serenity's
CommandId
type is the COMMAND_ID being used here, as far as I can tell.Currently in poise when registering commands this info is discarded and not stored in the Framework. So poise's
Command
objects lacks this info, so I cannot have my commands linked from the help menu.tl;dr : this would be nice if I could do it automatically from the help menu. Even if just as a
cmd.format_for_discord()
method onpoise::Command
.The text was updated successfully, but these errors were encountered: