feat: set methods for MessageActionRow and MessageSelectMenu (#6490)

This commit is contained in:
Rodry
2021-08-24 21:20:03 +01:00
committed by GitHub
parent 7aff15a055
commit fb50dd9841
3 changed files with 24 additions and 0 deletions

View File

@@ -59,6 +59,16 @@ class MessageActionRow extends BaseMessageComponent {
return this;
}
/**
* Sets the components of the action row.
* @param {...MessageActionRowComponentResolvable[]} components The components to set
* @returns {MessageActionRow}
*/
setComponents(...components) {
this.spliceComponents(0, this.components.length, components);
return this;
}
/**
* Removes, replaces, and inserts components in the action row.
* @param {number} index The index to start at