Used to the the bot in. This is essential for the bot to become online. This function is ran in async.
Param
Required?
Description
token
true
The login token
Returns - botToken
setPresence(status, options = {})
Used to set the game of the bot.
Param
Required?
Description
status
true
status of the bot(online, dnd, idle, offline)
options.game
false
This is what will show up under the bot's profile
Default = null
options.type
false
This is the type of the presence
Default = 0
Returns - void
ready(callback)
Fired when all caches are cut and the bot is completely ready. This time depends on the timeout option given in clientOptions. Default is 5000 milliseconds(5 seconds)