corddis
Deno Discord API wrapper made mainly for learning. Still in development, expect breaking changes.
- Inspired by discord.js, but still original
- Close to the API
- Highly configurable
- Written in TypeScript
Todo
- High priority
- Support for other types of text channels (categories, news)
- Documentation
- User presence
- Webhooks
- Standalone webhook client
- Pinned messages
- More structures
- Gateway resuming
- Slash commands
- Low priority
- More control over the cache
- Compression
- Templates
- Sharding (internal for now)
- Audit logs
-
Voice support(halted till UDP support will be stable in Deno)
Example
import { Client, Intents, Message, User, to } from "https://deno.land/x/corddis/mod.ts"
const client = new Client("token", Intents.GUILD_MESSAGES)
client.events.$attach(to('MESSAGE_CREATE'), async (message: Message) => {
if (message.data.content == "!ping") {
await message.reply("Pong!")
}
})
client.events.$attach(to("READY"), (user: User) => {
console.log("Logged as " + user.data.username)
})
client.login()