dislash.py:用于discord斜杠命令的Python包装器,旨在扩展discord.py

时间:2021-04-06 06:38:15
【文件属性】:
文件名称:dislash.py:用于discord斜杠命令的Python包装器,旨在扩展discord.py
文件大小:28KB
文件格式:ZIP
更新时间:2021-04-06 06:38:15
discord discord-api discord-py slash-commands Python dislash.py 的扩展库,允许构建很棒的斜杠命令。 :page_facing_up: 斜杠命令是Discord API的一项新功能,可用于构建用户友好的命令。 在键盘上按“ / ”后,将弹出斜杠命令的整个列表。 该列表包括提示和简短说明,这些内容使您更容易探索机器人。 安装 在终端中运行以下任何命令: pip install dislash.py python -m pip install dislash.py 特征 支持自动注册斜杠命令 支持手动和自动分片 便捷的基于装饰器的界面 基于OOP的斜杠命令构造函数 例子 :light_bulb: 该库确实需要安装 。 创建一个斜杠命令 在此示例中,注册是自动的。 如果要单独注册斜杠命令,请参见下面的示例。 from discord . ext import commands from dislash import slash_commands from dislash . i
【文件预览】:
dislash.py-main
----setup.py(2KB)
----dislash()
--------slash_commands.py(40KB)
--------__init__.py(23B)
--------interactions.py(27KB)
----requirements.txt(10B)
----pyproject.toml(108B)
----LICENSE(1KB)
----README.md(4KB)
----docs()
--------slash-register.rst(5KB)
--------requirements.txt(11B)
--------Makefile(634B)
--------examples.rst(6KB)
--------index.rst(851B)
--------conf.py(2KB)
--------slash-response.rst(1KB)
--------make.bat(795B)
--------quickstart.rst(2KB)
--------slash-client.rst(2KB)
--------cogs.rst(881B)
--------interactions.rst(1KB)

网友评论