Class FluxerWebhookClient
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()
Delete webhook using the webhook token.
public Task DeleteAsync()
Returns
DeleteMessageAsync(ulong)
Delete a webhook message using the webhook token.
public Task DeleteMessageAsync(ulong messageId)
Parameters
messageIdulong
Returns
EditMessageAsync(ulong, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, List<ulong>?, List<AttachmentRequest>?)
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)
Parameters
messageIdulongcontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?stickerIdsList<ulong>attachmentsList<AttachmentRequest>
Returns
GetAsync()
Get webhook using the webhook token.
public Task<Webhook> GetAsync()
Returns
SendMessageAsync(string?, List<EmbedRequest>?, string?, string?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?)
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)
Parameters
contentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>
Returns
SendMessageWaitAsync(string?, List<EmbedRequest>?, string?, string?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?)
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)
Parameters
contentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>