AAA3A-AAA3A / AAA3A-cogs

Many cogs for Red-DiscordBot.
https://aaa3a-cogs.readthedocs.io/en/latest
Other
35 stars 28 forks source link

[CommandsButtons] Add Alias/Custom Commands support and fix Modal who is displaying for "complete commands". #35

Closed Potawto closed 1 year ago

Potawto commented 1 year ago

What cog is this feature request for?

CommandsButons

Describe the feature request in as much detail as possible

Add support aliases as valid commands

My use case is making a button that sends a command with a parameter, instead of having the button pop up a dialog for the clicker to input the parameter.

!alias add skipone skip 1 !commandsbuttons add # skipone ⏭️ 2 Next

AAA3A-AAA3A commented 1 year ago

It should already be the case. I'll check.

AAA3A-AAA3A commented 1 year ago

And, if you specify a parameter yourself in the command, the Modal will not be displayed. Just use [p]commandsbuttons add ... "skip 1" ....

Potawto commented 1 year ago

And, if you specify a parameter yourself in the command, the Modal will not be displayed. Just use [p]commandsbuttons add ... "skip 1" ....

Thank you, that's perfect! I didn't know I could.

This is me trying to use an alias: image

No point using the alias for this case anymore, though.

Potawto commented 1 year ago

And, if you specify a parameter yourself in the command, the Modal will not be displayed. Just use [p]commandsbuttons add ... "skip 1" ....

I tried this, but it doesn't seem to work. The modal still pops up.

!commandsbuttons add # "skip 1" ⏭️ 2 Next

Am I doing something wrong?