Skip to main content
Deno 2 is finally here 🎉️
Learn more

corddis

MIT license

Deno Discord API wrapper made mainly for learning. Still in early stage of development.

  • 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
  • Low priority
    • More control over the cache
    • Compression
    • Templates
    • OAuth2
    • Sharding
    • Voice support

Example

import { Client, Intents, Message, User } from "https://deno.land/x/corddis/mod.ts"

const client = new Client("token", Intents.GUILD_MESSAGES)

client.on('MESSAGE_CREATE', async (message: Message) => {
    if (message.data.content == "!ping") {
        await message.reply("Pong!")
    }
})

client.on("READY", (user: User) => {
    console.log("Logged as " + user.data.username)
})

client.login()