woojiahao / Taiga

Discord administration bot
https://woojiahao.github.io/Taiga
MIT License
20 stars 12 forks source link

Enhancing help.json #18

Closed woojiahao closed 5 years ago

woojiahao commented 5 years ago

Include an optional array for argumentList for each command which will display the list of allowed inputs for words:

{
    "name": "blah",
    "description": "blah",
    "syntax": "blah { Test }",
    "example": "blah",
    "argumentList": [
        {
            "name": "Test",
            "args": ["ok", "no", "yes"]
        }
    ]
}

Each argument in that list will follow the name in the syntax and match it up.

This will be displayed in help and in the documentation in a separate section.

woojiahao commented 5 years ago

Completed.