Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

ts-cord/tscord

Repository files navigation

TypeCord (Discontinued)

This repository is a representation of the TypeCord package.

Installation

npm install typecord

How to use

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

TypeCord Features

  • 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.

Examples

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.

Contributing

We welcome contributions from all skill levels. If you'd like to contribute to Typecord's development, read our contributing guide to get started.

Help

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.

Packages

  • typecord - Interact with the Discord API in an easy and powerful way
  • @typecord/builders - A utility package of Discord-related builders

Releases

No releases published

Packages

No packages published