Table of Contents

Method EditResponseAsync

Namespace
DisCatSharp.ApplicationCommands.Context
Assembly
DisCatSharp.ApplicationCommands.dll

EditResponseAsync(DiscordWebhookBuilder, ModifyMode, CancellationToken)

Edits the interaction response.

public Task<DiscordMessage> EditResponseAsync(DiscordWebhookBuilder builder, ModifyMode modifyMode = ModifyMode.Update, CancellationToken cancellationToken = default)

Parameters

builder DiscordWebhookBuilder

The data to edit the response with.

modifyMode ModifyMode

The modify mode.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordMessage>

EditResponseAsync(string, CancellationToken)

Edits the interaction response.

public Task<DiscordMessage> EditResponseAsync(string content, CancellationToken cancellationToken = default)

Parameters

content string

The content to edit the response with.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordMessage>