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.7a2.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.7a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 131e92e1f1f4218500bc4d4d7df5cc4de25f08d1690ef427cc73707e50ded3b8 |
|
MD5 | 75ff4d7d5fc01753a8e7ddd91b7aa19b |
|
BLAKE2b-256 | 5c652a44a5d22038a6f601405e7f512914295b9639a0eaa5c77f77824d402b32 |