A signature parser for hikari's command handler tanjun.
Project description
tanchi
A signature parser for hikari's command handler tanjun.
Finally be able to define your commands without those bloody decorator chains!
Example
@component.with_slash_command
@tanchi.as_slash_command(default_to_ephemeral=True)
async def command(
ctx: tanjun.abc.SlashContext,
integer: int = 0,
flag: bool = False,
channel: typing.Optional[hikari.GuildTextChannel] = None,
):
"""Small tanchi command
Parameters
----------
integer : int
Int value.
flag : bool
Whether this flag should be enabled
channel : hikari.GuildTextChannel
channel to target.
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hikari-tanchi-1.0.1.tar.gz
(4.4 kB
view details)
File details
Details for the file hikari-tanchi-1.0.1.tar.gz
.
File metadata
- Download URL: hikari-tanchi-1.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.26.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eebb0f322ade297fc6a368f91d21ddf8a7a2885ae88922e54cbdc8146f64d059 |
|
MD5 | cb0db88d1de0e18af515fba9631170a1 |
|
BLAKE2b-256 | aeb6998f2991fc92b689e8e26097300bd2bbd251d0fac3e051e8b1d4e5926c9a |