Properties
.arguments
.botMention
.commands
.inhibitors
.messageCollectors
.monitors
.options
.prefix
.prefixes
.sourceFolderPath
.tasks
.collectMessages(options:CollectMessagesOptions)
Handler that will create a collecetor internally. Users should be using needMessage.
.cooldownReached(message:Message,
command:Command,
options:RespondToCooldownOption)
Handler that is executed when a user is using a command too fast and goes into cooldown. Override this to customize the behavior.
Get a clean string form of the current time. For example: 12:00PM
.humanizeMilliseconds(milliseconds:number
)
Converts a number of milliseconds to a easy to read format(1d2h3m).
Prepares the bot to run. Ideally used for loading files to the bot.
Allows users to override and customize the addition of a event listener
Allows users to override and customize the initialization of scheduled task intervals.
.loadFile(result:any
,
dir:string
,
collection:Collection
)
.needMessage(userId:string
,
channelId:string
,
options:unknown
)
Request some message(s) from a user in a channel.
.processMonitors(message:Message)
Handler that is run on messages and can
.stringToMilliseconds(text:string
)
Converts a text form(1d2h3m) of time to a number in milliseconds.