πGet Started
Requirements
Create a start Instance
// Frist import the class
const { TDInstance } = require("tdhandler");
// then call the constructor
// the options can be found in the description of TDInstance class
new TDInstance(your options);// Create the client object
const { Client } = require("discord.js");
const client = new Client({
intents: ["GUILDS", "GUILD_MESSAGES"],
});
client.on('ready', async () => {
await tdhandler.init(client);
console.log(`Logged in as ${client.user.username}`);
});
client.login(your bot token);Last updated