Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help argument within command #128

Open
Mergevos opened this issue Nov 6, 2023 · 2 comments
Open

Help argument within command #128

Mergevos opened this issue Nov 6, 2023 · 2 comments

Comments

@Mergevos
Copy link

Mergevos commented Nov 6, 2023

Is your feature request related to a problem? Please describe.
No, it's not related to any problem at all, this is new feature request.

Describe the solution you'd like
Additional optional help argument when making command

Describe alternatives you've considered
//

Additional context
So, what would it look like?
Basically a parameter which could be run by /help predefined command.

@Player.command(requires=(has_permission('can_mute'), ), error_message=SERBIAN_ERROR, help="Bans a player")
@Cheaterman
Copy link
Collaborator

Cheaterman commented Nov 6, 2023

I think it's a good idea ; for globally translated usage messages, people could define their own @cmd variant, eg

serbian_cmd = functools.partial(cmd, error_message=SERBIAN_ERROR)

Then they can use @serbian_cmd instead of @cmd for their commands

@Mergevos
Copy link
Author

Mergevos commented Nov 6, 2023

Thanks C;
Thanks. Still learning by the way :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants