Constructor
new Azarasi(properties)
Instantiates a new Bot.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
object | The properties object.
Properties
|
Members
bot
The Discord.js Client
commands :CommandManager
The command manager
Type:
data
The data store
events
Main Event Emitter
guilds :GuildManager
The guild manager
Type:
locales :LocaleManager
The locale manager
Type:
modules :ModuleManager
The module manager
Type:
permissions :PermissionsManager
The permissions manager
Type:
properties
The properties object
ready
Is the bot ready?
settings :SettingsManager
The settings manager
Type:
shard :Discord.ShardClientUtil
Sharding client
Type:
- Discord.ShardClientUtil
Methods
establishConnection()
Establishes connection with discord.
log(type)
Logs stuff to the console.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
type |
number | 0 | 0 for important stuff, 1 for debug info, 2 for errors. |
processMessage(msg)
Processes messages.
Parameters:
Name | Type | Description |
---|---|---|
msg |
object | Discord.js message object |