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 DiscordWebhookBuilder ModifyComponentByCustomId(string customId, Action<DiscordComponent> modifyAction)
Parameters
customIdstringThe custom ID to match.
modifyActionAction<DiscordComponent>The action to perform on the matched component.
Returns
- DiscordWebhookBuilder
The current builder for chaining.