Class

Feature

Feature()

Constructor

# new Feature()

A feature is an object with information to make an action from a console. The emojiName can be either a custom emoji ID or a unicode emoji name.

View Source classes/consoles/feature.js, line 22

Methods

# static create(args) → {Feature}

Creates a feature object when you have a GuildEmoji or a ReactionEmoji. Used for when adding features programmatically!
Parameters:
Name Type Attributes Description
args Object
name String
description String
emoji GuildEmoji | ReactionEmoji | String
callback FeatureCallback
removeCallback FeatureCallback <optional>

View Source classes/consoles/feature.js, line 41

Feature

# getFieldName(guildEmojiManager) → {String}

Returns a string with the emoji and the feature name: - Feature 1
Parameters:
Name Type Description
guildEmojiManager GuildEmojiManager

View Source classes/consoles/feature.js, line 95

String

# getFieldValue() → {String}

Returns the feature's value string for when adding it to a embed field.

View Source classes/consoles/feature.js, line 105

String

Feature(args)

Constructor

# new Feature(args)

Parameters:
Name Type Attributes Description
args Object arguments
name String the name of the feature
emojiName String the name of the emoji
description String the description of the feature
callback FeatureCallback the callback for when the feature is activated
removeCallback FeatureCallback <optional>
the callback for when the feature is deactivated

View Source classes/consoles/feature.js, line 60

Methods

# static create(args) → {Feature}

Creates a feature object when you have a GuildEmoji or a ReactionEmoji. Used for when adding features programmatically!
Parameters:
Name Type Attributes Description
args Object
name String
description String
emoji GuildEmoji | ReactionEmoji | String
callback FeatureCallback
removeCallback FeatureCallback <optional>

View Source classes/consoles/feature.js, line 41

Feature

# getFieldName(guildEmojiManager) → {String}

Returns a string with the emoji and the feature name: - Feature 1
Parameters:
Name Type Description
guildEmojiManager GuildEmojiManager

View Source classes/consoles/feature.js, line 95

String

# getFieldValue() → {String}

Returns the feature's value string for when adding it to a embed field.

View Source classes/consoles/feature.js, line 105

String