Skip to main content

An API wrapper for Discord's slash commands. Written in Python.

Reason this release was yanked:

wrong version. use 0.0.6a3

Project description

discord-splash

An API wrapper for Discord's slash commands.

Maintainability Documentation Status

Docs:

Documentation Status

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 I cannot find out how to upload to PyPi. Use python3 setup.py install. Sorry for the inconvenience

Project details


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.6a2.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

discordSplash-0.6a2-py3-none-any.whl (20.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page