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.7a1.tar.gz
(13.3 kB
view hashes)
Built Distributions
discordSplash-0.0.7a1-py3.9.egg
(43.1 kB
view hashes)
discordSplash-0.0.7a1-py3.8.egg
(41.8 kB
view hashes)
Close
Hashes for discordSplash-0.0.7a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94ce14bd89d804d53189d92b0e8d66a31a151f923e0e79988a71fcae7b9a8a59 |
|
MD5 | ed3cdd558277b619c8ccf880ea2cf25f |
|
BLAKE2b-256 | 85a87f021a05c4e319bb5b93e82f78043dd52fe58b7ef70c3867769954d8491d |