Skip to content

MentionOption

Represents a mention option.

Type parameters

Type parameterValue
T extends nullnull
K extends booleanfalse

Constructors

new MentionOption()

1
new MentionOption<T, K>(options?: object): MentionOption<T, K>

Creates a new instance of the mention option.

Parameters

ParameterTypeDescription
options?objectThe options of the mention option.
options.grouped?K-

Returns

MentionOption<T, K>

Source

twitchfy/packages/chatbot/src/structures/MentionOption.ts:25

Properties

PropertyModifierTypeDefault valueDescription
defaultValuereadonlyT...The default value of the mention option. Always null as actually there is not planned way to set a default value.
groupedreadonlyK...Whether the mention option is grouped into more than two types of mention.
typereadonly"mention"'mention'The type of the mention option. It’s always mention.