Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescord

A clean, extensible Discord bot framework written in TypeScript.

Features

  • Slash command support
  • Event handling
  • Decorator support for clean command/event registration
  • Simple, extensible API
  • TypeScript native

Example

const bot = new TypescordClient({ token: 'YOUR_TOKEN', clientId: 'YOUR_CLIENT_ID' });

bot.command(new Command({
  name: 'ping',
  description: 'Ping pong!',
  execute: interaction => interaction.reply('Pong!'),
}));

bot.start();

With Decorators

class BotCommands {
  @CommandHandler('ping', 'Replies with Pong!')
  ping(interaction) {
    interaction.reply('Pong!');
  }
}

License

MIT

About

TypeScript-based Discord bot framework.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages