💡 event.register comment
This commit is contained in:
parent
ab42b4f91b
commit
38d192207d
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ import listDir from "../../helpers/checkDirectory";
|
|||
import { IEvent } from "../../interfaces/Event";
|
||||
import logger from "../../middlewares/logger";
|
||||
|
||||
// Registers all available events
|
||||
export const register = async (client: Client) => {
|
||||
const eventNames = await listDir("plugins/events");
|
||||
if (!eventNames) throw new Error("📦 No events available");
|
||||
|
|
Loading…
Add table
Reference in a new issue