Class: Azarasi

Azarasi(properties)

The mother of all seals.

Constructor

new Azarasi(properties)

Instantiates a new Bot.
Parameters:
Name Type Description
properties object The properties object.
Properties
Name Type Description
prefix string Default bot prefix (REQUIRED)
token string Bot token (REQUIRED)
selfBot boolean Defines this bot as a selfbot
publicPrefix string Public Prefix (SelfBots only)
owner Array.<string> Bot owner user IDs
admins Array.<string> Global admin user IDs
adminRoles Array.<string> Admin role names
djRoles Array.<string> "DJ" role names
blacklist Array.<string> Blacklisted User IDs
modulePath string Path to load modules from
ffmpegBin string Path to the FFMPEG binary (will use the global PATH if not set)
dbFile string Database file.
dbPort string Database port.
debug boolean True to enable debug mode
watch boolean True to enable automatic hot-reloading of modules
localePath string Path to load locales from
locale string Default locale
Source:

Members

bot

The Discord.js Client
Source:

commands :CommandManager

The command manager
Type:
Source:

data

The data store
Source:

events

Main Event Emitter
Source:

guilds :GuildManager

The guild manager
Type:
Source:

locales :LocaleManager

The locale manager
Type:
Source:

modules :ModuleManager

The module manager
Type:
Source:

permissions :PermissionsManager

The permissions manager
Type:
Source:

properties

The properties object
Source:

ready

Is the bot ready?
Source:

settings :SettingsManager

The settings manager
Type:
Source:

shard :Discord.ShardClientUtil

Sharding client
Type:
  • Discord.ShardClientUtil
Source:

Methods

establishConnection()

Establishes connection with discord.
Source:

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.
Source:

processMessage(msg)

Processes messages.
Parameters:
Name Type Description
msg object Discord.js message object
Source: