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

Candle

candle is a single file, independent discord api library for deno Note: candle is in development and does not cover the full api

quickstart

import { Client, RichEmbed } from 'https://deno.land/x/candle@v1.0.2-beta/deps.js';

const bot = new Client('token');

bot.on('ready', () => 
  console.log(bot.user.username)
);

bot.on('messageCreate', message => {
  if(message.content == 'ping') {
    bot.createMessage({
      channel: message.channel_id,
      content: 'pong' })
  }
});

bot.run();