Members
Methods
# async static fromJSON(json, guild) → {Console}
Creates a Console from JSON data.
Parameters:
Name | Type | Description |
---|---|---|
json |
JSON | the json data |
guild |
Guild | the guild where this console lives |
# async addFeature(feature)
Adds a feature to this console.
Parameters:
Name | Type | Description |
---|---|---|
feature |
Feature | the feature to add |
# async addField(name, value, inlineopt)
Adds a field to this console without adding a feature.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String | the new field name | |
value |
String | the description on this field | |
inline |
Boolean |
<optional> |
# async changeColor(color)
Changes the console's color.
Parameters:
Name | Type | Description |
---|---|---|
color |
String | the new color in hex |
# createReactionCollector(message)
Creates the reaction collector in the message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Message |
# removeFeature(identifier)
Removes a feature from this console. TODO remove from embed too!
Parameters:
Name | Type | Description |
---|---|---|
identifier |
String | Feature | feature name, feature emojiName or feature |
# async sendConsole(messageTextopt)
Sends the console to a channel
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
messageText |
String |
<optional> |
text to add to the message used to send the embed |
# stopConsole()
Stop the console from interacting with any users.
# toJSON() → {JSON}
Creates a JSON representation of this object
representation of this object as JSON
JSON