Table of Contents

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

customId string

The custom ID to match.

modifyAction Action<DiscordComponent>

The action to perform on the matched component.

Returns

DiscordWebhookBuilder

The current builder for chaining.