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: 19 days 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 (almost 4 years ago)
- Default Branch: rewrite
- Last Pushed: 2023-04-03T13:59:25.000Z (over 1 year ago)
- Last Synced: 2024-10-11T03:17:11.041Z (about 1 month 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.[![Maintainability](https://api.codeclimate.com/v1/badges/518e23ddf3bf0b0e065f/maintainability)](https://codeclimate.com/github/Mineinjava/discord-splash/maintainability) [![Documentation Status](https://readthedocs.org/projects/discordsplash/badge/?version=latest)](https://discordsplash.readthedocs.io/en/latest/?badge=latest) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=Mineinjava/discord-splash)](https://dependabot.com)
### Docs:
[![Documentation Status](https://readthedocs.org/projects/discordsplash/badge/?version=latest)](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`