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.9a8.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for discordSplash-0.0.9a8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a25ca1589fc12ab313256b7e8b184fee6d29314772cde1789de38e6f06b30f6e |
|
MD5 | 5a1811561e72030aab6be20b7b5668c3 |
|
BLAKE2b-256 | fcff15962377a5b75f4db2ee6ab46bd4cc2d870aaffe5d555a04c14bedf09b19 |