📜  @typeit discord - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:57.161000             🧑  作者: Mango

代码示例2
// Use the Client that are provided by @typeit/discord NOT discord.jsimport { Client } from "@typeit/discord"; async function start() {  const client = new Client({    classes: [      `${__dirname}/*Discord.ts`, // glob string to load the classes      `${__dirname}/*Discord.js` // If you compile using "tsc" the file extension change to .js    ],    silent: false,    variablesChar: ":"  });   await client.login("YOUR_TOKEN");} start();