mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
feat!: More label components and text display in modal (#11078)
BREAKING CHANGE: Modals only have adding (no setting) and splicing has been replaced with a generalised splice method to support all components.
This commit is contained in:
@@ -89,6 +89,11 @@ export type ModalActionRowComponentBuilder = TextInputBuilder;
|
||||
*/
|
||||
export type AnyActionRowComponentBuilder = MessageActionRowComponentBuilder | ModalActionRowComponentBuilder;
|
||||
|
||||
/**
|
||||
* Any modal component builder.
|
||||
*/
|
||||
export type AnyModalComponentBuilder = LabelBuilder | TextDisplayBuilder;
|
||||
|
||||
/**
|
||||
* Components here are mapped to their respective builder.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user