Skip to content

Deno Discord API wrapper made mainly for learning.

License

Notifications You must be signed in to change notification settings

marek12306/corddis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corddis

MIT license

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()

About

Deno Discord API wrapper made mainly for learning.

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •