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.9a5.tar.gz
(27.9 kB
view hashes)
Built Distributions
discordSplash-0.0.9a5-py3.9.egg
(43.3 kB
view hashes)
Close
Hashes for discordSplash-0.0.9a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f0e758f88eb66decde960da6b32c5e1e6d0279444cbb804d16a00dd130bd3b2 |
|
MD5 | c72043e13484ac1826fb8d85c21f4222 |
|
BLAKE2b-256 | 5d3f2135a514f53d97bb0bda27605bde00d7b9873ff5ad15090fc4a05fc051b7 |