corddis

MIT license

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

  • Inspired by discord.js, but still original
  • Close to the API
  • Highly configurable
  • Written in TypeScript

Todo

  • High priority
    • Support for channels other than text
    • Documentation
    • User presence
    • Webhooks
    • Pinned messages
    • More structures
  • Low priority
    • More control over the cache
    • 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()