- Preparing search index...
- The search index is not available
erine
Class ComponentBuilder<T>
Constructors
constructor
- new ComponentBuilder<T>(rowMax?): ComponentBuilder<T>
-
Properties
Private
currentIndex
currentIndex: any
Private
getCurrentRow
getCurrentRow: any
rowMax
rowMax: RowMax
Private
rows
rows: any
Methods
addComponent
- addComponent(component): ComponentBuilder<T>
-
Parameters
-
component: ValidComponents
addComponents
- addComponents(...components): ComponentBuilder<T>
-
Parameters
-
Rest
...components: ValidComponents[]
addInteractionButton
- addInteractionButton(options): ComponentBuilder<T>
-
Parameters
-
options: AddInteractionButtonOptions
addRow
- addRow(components?): ComponentBuilder<T>
-
Parameters
-
Optional
components: ValidComponents[]
addSelectMenu
-
Parameters
-
options: AddSelectMenuOptions
addTextInput
- addTextInput(options): ComponentBuilder<T>
-
Parameters
-
options: AddTextMenuOptions
addURLButton
- addURLButton(options): ComponentBuilder<T>
-
Parameters
-
options: AddURLButtonOptions
removeEmptyRows
- removeEmptyRows(): ComponentBuilder<T>
-
setRowMax
- setRowMax(rowMax): ComponentBuilder<T>
-
toJSON
- toJSON(): T[]
-
Returns T[]
toJSONRaw
- toJSONRaw(): ToRaw<T>[]
-
Returns ToRaw<T>[]
Static
emojiToPartial
- emojiToPartial(emoji, type?): PartialEmoji
-
Parameters
-
emoji: string
-
Optional
type: "default" | "custom"
Add a component to the current row, or a new row depending on certain conditions