#
FileLoader
Class
Lists Event and Commands by reading the folder.
Properties
Events
files startedAt
error finish load
#
Import
import { FileLoader } from 'discordkit';
const { FileLoader } = require('discordkit');
#
Constructor
new FileLoader<T>(path: string);
#
Properties
#
.files
List of files in the folder.
Type:
#
.startedAt
The time when the folder was started to be read.
Type:
number
#
Events
#
error
It is triggered when an error occurs while reading the folder.
#
finish
It is triggered when the process of reading the folder is finished.
#
load
It is triggered when a file is read.