Dynamic Help
Description
A dynamically generated help command for interactions.py that allows for >100 character command descriptions
Usage
Install via pypi
pip install interactions-dynamic-help
Then load the extension into your bot
from interactions import Client
bot = Client()
...
bot.load_extension("interactions.ext.dynhelp")
bot.start("Token")
Using longer descriptions
Longer description is done with a docstring.
If you are using a docstring longer than 100 chars, you MUST provide a description in the slash_command, otherwise the docstring will be used as the description
from interactions import Client, slash_command
bot = Client()
@slash_command(
name="test",
description="This is a test command",
)
async def test(ctx):
"""This is a test command (parsed as a short description and ignored if a long description is provided)
This is a longer description that will be used in the help command and is longer than 100 chars
- this is parsed as part of the long description
"""
await ctx.respond("Test")
bot.load_extension("interactions.ext.dynhelp")
bot.start("Token")
You can specify to combine the short and long description by adding combine=True to the decorator
bot.load_extension("interactions.ext.dynhelp", combine=True)
Skipping commands and/or options
By defualt the ctx and bot parameters are skipped, but you can skip more by adding skip_coms adn skip_opts to
the decorator
bot.load_extension("interactions.ext.dynhelp", skip_coms=["test"], skip_opts=["test"])
Custom args to the paginator
These can be added by adding paginator_args to the decorator, your args will be added to the default args which are
{
"ephemeral": true,
"delete_after": 60
}
bot.load_extension("interactions.ext.dynhelp", paginator_args={"timeout": 60})
Metadata
Release files for interactions-dynamic-help 1.0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| interactions_dynamic_help-1.0.4.2.tar.gz | 4.0 kB | Without provenance | Details for interactions_dynamic_help-1.0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| interactions_dynamic_help-1.0.4.2-py3-none-any.whl | Python 3 | none | any | Details for interactions_dynamic_help-1.0.4.2-py3-none-any.whl |
Total release size: 8.2 kB
Release files / interactions_dynamic_help-1.0.4.2.tar.gz
| Download URL | interactions_dynamic_help-1.0.4.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a701bf46611e14f30eec0ae3c9cbb90fbc305195f866a7c7d08304da4c43f28d
|
|
BLAKE2b-256 checksum How to use checksums |
dcbc0d29d305a13bda371f7bafaf1239bb7270553d2068232e193627afbc5959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / interactions_dynamic_help-1.0.4.2-py3-none-any.whl
| Download URL | interactions_dynamic_help-1.0.4.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b2bf4b9800a06c782e921f824828bf9243e186a0361c6be759c84dce7b0a230
|
|
BLAKE2b-256 checksum How to use checksums |
06d044b652a2ecf5ce4d4480021ecc74a6230f9bbedd310c1913f14b5b8aecdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for interactions-dynamic-help 1.0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.