aiointeractions 2.0.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

aiointeractions 2.0.0

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.
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.