Skip to content

Mineinjava/discord-splash

Repository files navigation

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