An async Discord HTTP Interactions wrapper for discord.py built with aiohttp.
discord.py>2.4 due to changes in how interactions are parsed
https://aiointeractions.readthedocs.io/
aiointeractions requires Python 3.8 or newer.
pip install aiointeractions
import asyncio
import discord
import aiointeractions
intents = discord.Intents.none()
# intents are not required because there is no gateway connection
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!')
app.run('bot token')While some forks may be compatible, discord.py forks will not be supported.
