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

Rework hybrid commands #13

Merged
merged 6 commits into from
Dec 18, 2024
Merged

Rework hybrid commands #13

merged 6 commits into from
Dec 18, 2024

Conversation

Ableytner
Copy link
Owner

This PR reworks hybrid commands to allow for more flexibility when using string arguments in commands.

Breaking change: defining a string argument as

async def my_command(self, ctx, *my_arg: list[str]):
    my_arg_combined = " ".join(["".join(item) for item in my_arg])

is no longer allowed, please use

async def my_command(self, ctx, my_arg: str):
    pass

instead. The functionality will be the same. This also supports string inputs with whitespaces.

@Ableytner Ableytner merged commit 51f64fd into main Dec 18, 2024
3 checks passed
@Ableytner Ableytner deleted the hybrid-command-rework branch December 18, 2024 23:02
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

Successfully merging this pull request may close these issues.

1 participant