Skip to main content

An async Discord HTTP Interactions wrapper for discord.py.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiointeractions-2.0.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiointeractions-2.0.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file aiointeractions-2.0.2.tar.gz.

File metadata

  • Download URL: aiointeractions-2.0.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for aiointeractions-2.0.2.tar.gz
Algorithm Hash digest
SHA256 42e762f579899e7f8d91664309dbac14f913f65081ad420b6d62028d74f2b23e
MD5 98b4cc7c06dd407f20b1152e54b2ece0
BLAKE2b-256 0dae7f777b5f310a0562403a67d8a1a14ff956598494ce1f5c4d2767b4286c4e

See more details on using hashes here.

File details

Details for the file aiointeractions-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aiointeractions-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 458f31867e580f27471e24df5f80702e6b39bca510eb1b6152b58e0d8c03a2d8
MD5 52c22ea596f0b13845de28647f25df50
BLAKE2b-256 a6166aad3dc3bdbfebd3d2a75ea55f3887a2823363fa7010c716e12eae123e78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page