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.0.tar.gz
(4.4 kB
view details)
File details
Details for the file hikari-tanchi-1.0.0.tar.gz
.
File metadata
- Download URL: hikari-tanchi-1.0.0.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 | 73af4a79d0704d03584e26380954543cdc0e23f5a1dd40135b39b54764c5dfb0 |
|
MD5 | 8422a72e91bb10fa817fc3c0a538268d |
|
BLAKE2b-256 | 93601203199be208e97f7602b6e2107c1c8c1917f190fa0a95749feaa008d029 |