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.

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 conenction

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

async def main():
    async with client:
        await app.start()
        # your bot will now receive interactions

asyncio.run(main())

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-1.1.1.tar.gz (5.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: aiointeractions-1.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for aiointeractions-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8d6833336a1e782351f04ba8be627fdeaf5c3882e66e1c5d6d6a525ba7c6d173
MD5 6c2219c6b93d82900f684ca408a91881
BLAKE2b-256 63f2c6b72f4c2e6bba0356e7b5f1aaea7af3ba0ec77e86e588ea2e7687415dc3

See more details on using hashes here.

Supported by

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