typescord-ts
v1.1.0
Published
A TypeScript library for building Discord bots with type safety and ease of use.
Maintainers
Readme
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
