Skip to content

Repository files navigation

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

The aiointeractions logo

Documentation

https://aiointeractions.readthedocs.io/

Installing

aiointeractions requires Python 3.8 or newer.

pip install aiointeractions

Example

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')

Fork Support

While some forks may be compatible, discord.py forks will not be supported.

About

An async Discord HTTP Interactions wrapper for discord.py https://aiointeractions.readthedocs.io/

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages