Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Argument descriptions

Pre-release
Pre-release
Compare
Choose a tag to compare
@Arthurdw Arthurdw released this 02 Oct 09:26
· 1847 commits to main since this release
008d608

This version implement the support for argument descriptions.

Examples

before 0.7.1 still suppported

@command(description="Add two numbers!")
async def add(
        first: int,
        second: int
):
    return f"The addition of `{first}` and `{second}` is `{first + second}`"

argument descriptions

@command(description="Add two numbers!")
async def add(
        first: (int, "The first number"),
        second: (int, "The second number")
):
    return f"The addition of `{first}` and `{second}` is `{first + second}`"

Result within discord

image