This repository is a representation of the TypeCord package.
npm install typecord
To get started with Typecord, you'll need to create a new instance of the Typecord client and provide your Discord bot's credentials. Here is a basic example of how to do this:
import { Client, ClientUser } from "typecord";
const client = new Client({
auth: 'Bot TOKEN_HERE' // Replace `TOKEN_HERE` with your bot's token
}); // If intents are not passed, it will be set to `0`
client.on('connect', (): void => {
console.log(`Connected as ${client.username}`);
});
client.connect(); // Connect to Discord
- Typechecks: Typecord is built with TypeScript and provides full support for event typing and function parameters for a safer, error-free development experience.
- Decorators: Typecord includes a variety of decorators to simplify creating commands and event listeners.
- ApplicationCommands: Full support with application commands.
- Flexible: Lightweight, speedy, efficient, 100% Promise-based and Object-oriented.
For more examples of how to use Typecord, check out the examples folder in our GitHub repository. fThere you will find examples or the functionality mentioned above, including:
- Using decorators
- Application Commands
- Ping Pong
- Webhooks
- And much more.
We welcome contributions from all skill levels. If you'd like to contribute to Typecord's development, read our contributing guide to get started.
If you need help or have any questions or problems, join our Discord server. There you will find additional information about using Typecord and how to troubleshoot.
typecord
- Interact with the Discord API in an easy and powerful way@typecord/builders
- A utility package of Discord-related builders