Extends
- Map
Methods
buildEmbed(embedConfig) → {external:MessageEmbed}
- Source:
Returns a discord.js MessageEmbed
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
embedConfig |
Object | configuration object Properties
|
Returns:
discord.js MessageEmbed
- Type
- external:MessageEmbed
buildEmbedFields(embedFieldName, embedFieldValues) → {Array.<external:EmbedField>}
- Source:
Returns EmbedFields for a discord.js MessageEmbed
Parameters:
Name | Type | Description |
---|---|---|
embedFieldName |
String | name of EmbedField |
embedFieldValues |
Array.<String> | array of values for EmbedFields |
Returns:
array of discord.js EmbedFields
- Type
- Array.<external:EmbedField>
buildEmbedFieldValues(embedFieldValues, content)
- Source:
Returns an array of EmbedField values from a string for a discord.js MessageEmbed
Parameters:
Name | Type | Description |
---|---|---|
embedFieldValues |
Array.<String> | array of values for EmbedFields |
content |
String | content for EmbedFields |
buildStatusEmbed(statusEmbedConfig) → {external:MessageEmbed}
- Source:
Returns a discord.js MessageEmbed that reports the memory and processor usage of the server's process along with its uptime and Discord stats
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
statusEmbedConfig |
Object | configuration object Properties
|
Returns:
discord.js MessageEmbed
- Type
- external:MessageEmbed
init(config)
- Source:
Initializes a new DiscordController
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | configuration object Properties
|
login()
- Source:
Logs in the Client with a token
start()
- Source:
Starts the DiscordController
Listens to Events:
stop()
- Source:
Stops the DiscordController