An API wrapper for Discord's slash commands. Written in Python.
Project description
discord-splash
An API wrapper for Discord's slash commands.
Docs:
Docs are hosted on ReadTheDocs.
NOTE:
you are required to make the slash commands via the Discord API. Currently this is not possible via this API wrapper.
Examples:
Simple bot that responds with "hi"
from discordSplash import Run
import discordSplash
@discordSplash.command(name='hello')
async def hello(data):
await data.respond(discordSplash.ReactionResponse("hi"))
Run('TOKEN')
Presence Example
from discordSplash import Run, Presence
import discordSplash
x = Presence(text='testing', presenceType=discordSplash.PresenceType.Game)
Run('TOKEN', x)
Installation
Use pip install discordSplash
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discordSplash-0.0.9a1.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.9a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ec067ea628b2f1e4af00a8fb58d25516dd1e9415870ca4e45f5a82b01e9607 |
|
MD5 | b2530eea65bcbb2cf5673c6d7e8c3f16 |
|
BLAKE2b-256 | b3598ac39bf0985b15d1d161c8a5c608b1dccee4d9ac7d95b9558a096ce73889 |