https://github.com/themaster3558/aiointeractions
An async Discord HTTP Interactions wrapper for discord.py
https://github.com/themaster3558/aiointeractions
discord discord-interactions discord-py python-3
Last synced: 9 days ago
JSON representation
An async Discord HTTP Interactions wrapper for discord.py
- Host: GitHub
- URL: https://github.com/themaster3558/aiointeractions
- Owner: TheMaster3558
- License: mit
- Created: 2022-10-02T18:39:18.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T03:42:14.000Z (over 1 year ago)
- Last Synced: 2025-04-07T13:40:26.531Z (7 months ago)
- Topics: discord, discord-interactions, discord-py, python-3
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
aiointeractions
===============An async Discord HTTP Interactions wrapper for `discord.py` built with `aiohttp`.
⚠️ **Warning:** This library is no longer compatible with ``discord.py>2.4`` due to changes in how interactions are parsed
.. image:: /docs/_static/logo.png
:alt: The aiointeractions logoDocumentation
-------------
https://aiointeractions.readthedocs.io/Installing
----------
`aiointeractions` requires Python 3.8 or newer... code::
pip install aiointeractions
Example
-------.. code:: py
import asyncio
import discord
import aiointeractionsintents = discord.Intents.none()
# intents are not required because there is no gateway connectionclient = 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!')app.run('bot token')
Fork Support
------------
While some forks may be compatible, discord.py forks will not be supported.