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