Skip to content

stuyy/Katana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is Katana?

Katana is an unofficial Discord library that allows you to build Discord Bots with the Deno runtime.

build issues pr stars forks

Usage

import { Client, MessageEmbed } from 'https://deno.land/x/katana/mod.ts'

const client = new Client();

client.on('ready', () => {
  console.log('Bot has logged in!');
});

client.on('message', (message) => {

  if (message.content === 'hello') {
    message.channel.send('Hello World!');
  } else if (message.content === 'embed') {
    const embed = new MessageEmbed()
      .setDescription('hello world')
      .setColor(13198335)
      .setTitle('This is an embed');
    message.channel.send(embed);
  }
});

client.login('token');

Features

  • Caching
  • Message Collectors
  • Message Embeds
  • Supports most Message Endpoints (Create, Delete, Edit, Fetch)
  • Very similar to Discord.JS

In Progress

  • Reaction Collectors
  • Await Message
  • Await Reaction

Future Features

  • Optional In-Memory Caching
  • Optional Redis Caching
  • Sharding
  • Voice Support
  • Commands Framework

Contributing

Contributions are appreciated. You can fork this repository and make a pull request and I'll review it. Feel free to join my Discord server: http://discord.gg/anson

About

Deno Discord API primarily based on Discord.JS ▬▬ι═══════ﺤ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published