Table of Contents

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

id int

The ID to match.

modifyAction Action<DiscordComponent>

The action to perform on the matched component.

Returns

DiscordMessageBuilder

The current builder for chaining.