How to update style of a button?
Hi, I'm trying to upgrade from v13 to v14. Given a message object, how can I update the style of a specific button?
npm list discord.js and node node -v version?ActionRow<MessageActionRowComponent>[], but when I use a ButtonBuilder to create a new button, I'm just not sure how to "compile" it into the type of MessageActionRowComponent so that typescript is happyButtonBuiler() or do I still need to use ButtonBuilder.from()?ActionRowBuilder class has a generic type parameter that specifies the type of component the action row holds:ActionRow<MessageActionRowComponent>[]ButtonBuilderMessageActionRowComponentType 'ActionRowBuilder<AnyComponentBuilder>' is missing the following properties from type 'ActionRow<MessageActionRowComponent>': type, equalsts(2739)ButtonBuiler()ButtonBuilder.from()ActionRowBuilderlet rows = msg.components
const newRow = new ActionRowBuilder(rows[row]);
const button = new ButtonBuilder()
newRow.components[column] = button
rows[row] = newRow
await msg.edit({components: rows})rows[row] = newRowconst row = new ActionRowBuilder<ButtonBuilder>().addComponents(button)
const row = new ActionRowBuilder<StringSelectMenuBuilder>().addComponents(selectMenu)
const row = new ActionRowBuilder<TextInputBuilder>().addComponents(textInput)