aiointeractions-1.1.1
توضیحات
An async Discord HTTP Interactions wrapper for discord.py.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aiointeractions-1.1.1 |
| نام | aiointeractions |
| نسخه کتابخانه | 1.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | The Master |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/aiointeractions/ |
| مجوز | MIT |
aiointeractions
===============
An async Discord HTTP Interactions wrapper for `discord.py` built with `aiohttp`.
Documentation
-------------
https://aiointeractions.readthedocs.io/
Installing
----------
`aiointeractions` requires Python 3.8 or newer.
.. code::
pip install aiointeractions
Example
-------
.. code:: py
import asyncio
import discord
import aiointeractions
intents = discord.Intents.none()
# intents are not required because there is no gateway conenction
client = discord.Client(intents=intents)
tree = discord.app_commands.CommandTree(client)
app = aiointeractions.InteractionsApp(client)
discord.utils.setup_logging(root=True)
@tree.command()
async def ping(interaction: discord.Interaction) -> None:
await interaction.response.send_message('Pong!')
async def main():
async with client:
await app.start()
# your bot will now receive interactions
asyncio.run(main())
Fork Support
------------
While some forks may be compatible, discord.py forks will not be supported.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl aiointeractions-1.1.1:
pip install aiointeractions-1.1.1.whl
نصب پکیج tar.gz aiointeractions-1.1.1:
pip install aiointeractions-1.1.1.tar.gz