Compare commits

..

No commits in common. "main" and "v2.0.2" have entirely different histories.
main ... v2.0.2

3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "vylbot-core",
"version": "2.0.3",
"version": "2.0.2",
"description": "A discord client based upon discord.js",
"main": "./dist/index",
"typings": "./dist",

View file

@ -95,11 +95,11 @@ export class Util {
for (let i = 0; i < eventFiles.length; i++) {
if (eventFiles[i].includes('.ts')) {
const eventName = eventFiles[i].split('.')[0];
const eventName = eventFiles[i].split('.')[0];
const file = require(`${process.cwd()}/${folder}/${eventName}.ts`).default;
const file = require(`${process.cwd()}/${folder}/${eventName}.ts`);
const event = new file() as Event;
const event = new file[eventName]() as Event;
// Load events
client.on('channelCreate', event.channelCreate);

View file

@ -1,5 +1,5 @@
import { Event } from "../../../src/type/event";
export default class normal extends Event {
export class normal extends Event {
public override channelCreate() {}
}