Method ModifyComponentByCustomId
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifyComponentByCustomId(string, Action<DiscordComponent>)
Modifies a component with the specified custom ID using the provided action.
public DiscordMessageBuilder ModifyComponentByCustomId(string customId, Action<DiscordComponent> modifyAction)
Parameters
customIdstringThe custom ID to match.
modifyActionAction<DiscordComponent>The action to perform on the matched component.
Returns
- DiscordMessageBuilder
The current builder for chaining.