Skip to main content

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

Project description

discord-splash

An API wrapper for Discord's slash commands.

Maintainability Documentation Status Dependabot 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

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.0.9a10.tar.gz (28.1 kB view hashes)

Uploaded Source

Built Distribution

discordSplash-0.0.9a10-py3-none-any.whl (30.8 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