Method EditFollowupAsync
- Namespace
- DisCatSharp.ApplicationCommands.Context
- Assembly
- DisCatSharp.ApplicationCommands.dll
EditFollowupAsync(ulong, DiscordWebhookBuilder, ModifyMode, CancellationToken)
Edits a followup message.
public Task<DiscordMessage> EditFollowupAsync(ulong followupMessageId, DiscordWebhookBuilder builder, ModifyMode modifyMode = ModifyMode.Update, CancellationToken cancellationToken = default)
Parameters
followupMessageIdulongThe id of the followup message to edit.
builderDiscordWebhookBuilderThe webhook builder.
modifyModeModifyModeThe modify mode.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordMessage>
The created message.
EditFollowupAsync(ulong, string, CancellationToken)
Edits a followup message.
public Task<DiscordMessage> EditFollowupAsync(ulong followupMessageId, string content, CancellationToken cancellationToken = default)
Parameters
followupMessageIdulongThe id of the followup message to edit.
contentstringThe content of the webhook.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordMessage>
The created message.