Method ModifyAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
ModifyAsync(DiscordWebhook, DiscordMessage)
Sends the modified webhook message.
public Task<DiscordMessage> ModifyAsync(DiscordWebhook webhook, DiscordMessage message)
Parameters
webhook
DiscordWebhookThe webhook that should be executed.
message
DiscordMessageThe message to modify.
Returns
- Task<DiscordMessage>
The modified message
ModifyAsync(DiscordWebhook, ulong)
Sends the modified webhook message.
public Task<DiscordMessage> ModifyAsync(DiscordWebhook webhook, ulong messageId)
Parameters
webhook
DiscordWebhookThe webhook that should be executed.
messageId
ulongThe id of the message to modify.
Returns
- Task<DiscordMessage>
The modified message
ModifyAsync(DiscordWebhook, DiscordMessage, DiscordThreadChannel)
Sends the modified webhook message.
public Task<DiscordMessage> ModifyAsync(DiscordWebhook webhook, DiscordMessage message, DiscordThreadChannel thread)
Parameters
webhook
DiscordWebhookThe webhook that should be executed.
message
DiscordMessageThe message to modify.
thread
DiscordThreadChannelTarget thread.
Returns
- Task<DiscordMessage>
The modified message
ModifyAsync(DiscordWebhook, ulong, ulong)
Sends the modified webhook message.
public Task<DiscordMessage> ModifyAsync(DiscordWebhook webhook, ulong messageId, ulong threadId)
Parameters
webhook
DiscordWebhookThe webhook that should be executed.
messageId
ulongThe id of the message to modify.
threadId
ulongTarget thread id.
Returns
- Task<DiscordMessage>
The modified message