Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Discall-Development/Discall
Functional async discord API
https://github.com/Discall-Development/Discall
Last synced: about 2 months ago
JSON representation
Functional async discord API
- Host: GitHub
- URL: https://github.com/Discall-Development/Discall
- Owner: Discall-Development
- Created: 2022-05-20T13:57:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T12:12:34.000Z (over 2 years ago)
- Last Synced: 2024-11-05T17:06:59.830Z (2 months ago)
- Language: JavaScript
- Size: 3.89 MB
- Stars: 28
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-bun - Discall - A async functional discord API wrapper written in bun (Frameworks & Libraries)
- awesome-bun - Discall - A async functional discord API wrapper written in bun. (Tools / Adapters)
README
# Discall
![](img/discall_background.png)A async functional discord API wrapper written in [bun](https://github.com/Jarred-Sumner/bun).
It let you process everything with function. (ex. message, reaction, voice, etc.)
## Why do I want to make this library?
---
because I want practice my code skill and make it for my another project.and I hope it can be more convenient for everyone.
## Example
---
How to let bot online? It is a simple way to do this.
```ts
let send = bot("TOKEN", {
intents: defaultIntents(),
prefix: "!"
});register({
name: EventName.Ready,
listener: async (data: ReadyEventData) => {
console.log("bot is online");
}
});
```You will see there is **so different** to another package.
There is no **Bot** Object.
Instead, here is a **send** function.
It is for send Https Request, and it accept our format.
## Request Format
---
```ts
{
uri: (base: URL) => { uri: string, mode: HttpMode };
data?: any;
cache?: () => any | (data: any) => any;
reason?: string;
}
```| mode | uri | data | reason | cache |
| :---: | :---: | :---: | :---: | :---: |
| GET \| DELETE | ✓ | x | - | ? |
| POST \| PUT | ✓ | ✓ | - | ? |
| NONE | x | x | x | ✓ || check | meaning |
| :---: | :---: |
| x | unable |
| ✓ | necessary |
| ? | optional |
| - | according method |## Other Docs
---
Please see our docs directory, [here](/docs)# To do list
## Interactions
---
- [ ] ApplicationCommand
- [ ] MessageComponents
- [ ] InteractionResponse
## Resources
---
- [ ] Audit Log
- [ ] Auto Moderation
- [ ] Channel
- [ ] Emoji
- [ ] Guild
- [ ] Guild Scheduled Event
- [ ] Guild Template
- [ ] Invite
- [ ] Stage Instance
- [ ] Sticker
- [ ] User
- [ ] Voice
- [ ] Webhook
## Topics
---
- [x] Gateway
- [x] Voice Connections
## Extra
---
- [ ] Command
- [ ] CommandPermission
- [ ] CommandChannel
- [ ] InteractionResponse