Class FluxerWebhookClient
- Namespace
- Fluxer.Net
- Assembly
- Fluxer.Net.dll
Webhook client for Fluxer.
public class FluxerWebhookClient : FluxerBaseClient
- Inheritance
-
objectFluxerWebhookClient
- Inherited Members
Constructors
FluxerWebhookClient(string, FluxerConfig?)
Create a Webhook client with url to send webhook messages.
public FluxerWebhookClient(string webhookUrl, FluxerConfig? config = null)
Parameters
webhookUrlstringconfigFluxerConfig
Exceptions
Properties
Id
Webhook id.
public ulong Id { get; }
Property Value
Token
Webhook token.
public string Token { get; }
Property Value
Methods
DeleteAsync(RequestOptions?)
Delete webhook using the webhook token.
public Task DeleteAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
DeleteMessageAsync(ulong, RequestOptions?)
Delete a webhook message using the webhook token.
public Task DeleteMessageAsync(ulong messageId, RequestOptions? options = null)
Parameters
messageIdulongoptionsRequestOptions
Returns
EditMessageAsync(ulong, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Modify a webhook message using the webhook token.
public Task<Message> EditMessageAsync(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
messageIdulongcontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
GetAsync(RequestOptions?)
Get webhook using the webhook token.
public Task<Webhook?> GetAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
SendMessageAsync(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 Task SendMessageAsync(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
contentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
SendMessageWaitAsync(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 Task<Message> SendMessageWaitAsync(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
contentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions