Class WebhookHelpers
- Namespace
- Fluxer.Net
- Assembly
- Fluxer.Net.dll
Http methods for Webhook class.
public static class WebhookHelpers
- Inheritance
-
objectWebhookHelpers
Methods
DeleteAsync(Webhook, RequestOptions?)
Delete webhook using the webhook token.
public static Task DeleteAsync(this Webhook webhook, RequestOptions? options = null)
Parameters
webhookWebhookoptionsRequestOptions
Returns
DeleteMessageAsync(Webhook, Message, RequestOptions?)
Delete a webhook message using the webhook token.
public static Task DeleteMessageAsync(this Webhook webhook, Message message, RequestOptions? options = null)
Parameters
webhookWebhookmessageMessageoptionsRequestOptions
Returns
DeleteMessageAsync(Webhook, ulong, RequestOptions?)
Delete a webhook message using the webhook token.
public static Task DeleteMessageAsync(this Webhook webhook, ulong messageId, RequestOptions? options = null)
Parameters
webhookWebhookmessageIdulongoptionsRequestOptions
Returns
EditMessageAsync(Webhook, Message, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Modify a webhook message using the webhook token.
public static Task<Message> EditMessageAsync(this Webhook webhook, Message message, string? content = null, List<EmbedRequest>? embeds = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookWebhookmessageMessagecontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
EditMessageAsync(Webhook, ulong, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Modify a webhook message using the webhook token.
public static Task<Message> EditMessageAsync(this Webhook webhook, ulong messageId, string? content = null, List<EmbedRequest>? embeds = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookWebhookmessageIdulongcontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
ModifyAsync(Webhook, WebhookJson, RequestOptions?)
Update webhook using the webhook token.
public static Task<Webhook> ModifyAsync(this Webhook webhook, WebhookJson request, RequestOptions? options = null)
Parameters
webhookWebhookrequestWebhookJsonoptionsRequestOptions
Returns
SendMessageAsync(Webhook, string?, List<EmbedRequest>?, string?, string?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Send message using the webhook token in a guild channel.
public static Task SendMessageAsync(this Webhook webhook, string? content = null, List<EmbedRequest>? embeds = null, string? username = null, string? avatarUrl = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, bool? tts = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookWebhookcontentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
SendMessageWaitAsync(Webhook, string?, List<EmbedRequest>?, string?, string?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Send message using the webhook token in a guild channel and wait for response message.
public static Task<Message> SendMessageWaitAsync(this Webhook webhook, string? content = null, List<EmbedRequest>? embeds = null, string? username = null, string? avatarUrl = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, bool? tts = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookWebhookcontentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions