Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mineinjava/discord-splash
An API wrapper for Discord's slash commands.
https://github.com/mineinjava/discord-splash
api-wrapper discord discord-bot discord-slash-commands discord-splash hacktoberfest hacktoberfest2021 python
Last synced: 4 months ago
JSON representation
An API wrapper for Discord's slash commands.
- Host: GitHub
- URL: https://github.com/mineinjava/discord-splash
- Owner: Mineinjava
- License: gpl-3.0
- Created: 2021-02-04T00:46:40.000Z (about 4 years ago)
- Default Branch: rewrite
- Last Pushed: 2023-04-03T13:59:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T03:17:11.041Z (4 months ago)
- Topics: api-wrapper, discord, discord-bot, discord-slash-commands, discord-splash, hacktoberfest, hacktoberfest2021, python
- Language: Python
- Homepage: https://discordsplash.readthedocs.io/en/latest/
- Size: 2.34 MB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-splash
An API wrapper for Discord's slash commands.[](https://codeclimate.com/github/Mineinjava/discord-splash/maintainability) [](https://discordsplash.readthedocs.io/en/latest/?badge=latest) [](https://dependabot.com)
### Docs:
[](https://discordsplash.readthedocs.io/en/latest/?badge=latest)Docs are hosted on [ReadTheDocs.](https://discordsplash.readthedocs.io/en/latest/)
### **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"*
```python
from discordSplash import Run
import discordSplash@discordSplash.command(name='hello')
async def hello(data):
await data.respond(discordSplash.ReactionResponse("hi"))Run('TOKEN')
```*Presence Example*
```python
from discordSplash import Run, Presence
import discordSplashx = Presence(text='testing', presenceType=discordSplash.PresenceType.Game)
Run('TOKEN', x)
```
### Installation
Use `pip install discordSplash`