Class Webhook
Fluxer entity with client attached.
public class Webhook : Entity, IWebhook, ISnowflake
- Inheritance
-
objectWebhook
- Implements
- Extension Methods
Properties
AvatarHash
The hash of the webhook avatar image.
public string? AvatarHash { get; }
Property Value
ChannelId
The ID of the channel this webhook posts to.
public ulong? ChannelId { get; }
Property Value
CreatedAt
Object created at UTC date.
public DateTimeOffset CreatedAt { get; }
Property Value
Creator
public User? Creator { get; }
Property Value
GuildId
The ID of the guild this webhook belongs to.
public ulong? GuildId { get; }
Property Value
Id
Unique identifier (snowflake) for the object.
public ulong Id { get; }
Property Value
Name
The display name of the webhook.
public string Name { get; }
Property Value
Token
The secure token used to execute the webhook.
public string? Token { get; }
Property Value
Remarks
Will be missing if you don't have access.
Methods
Create(FluxerBaseClient, WebhookJson)
Create a Webhook object from json.
public static Webhook Create(FluxerBaseClient client, WebhookJson json)
Parameters
clientFluxerBaseClientjsonWebhookJson
Returns
GetAvatarOrDefaultUrl(int)
Get the webhooks's avatar or fallback to default.
public string GetAvatarOrDefaultUrl(int size = 160)
Parameters
sizeint
Returns
GetAvatarUrl(int)
Get the webhooks's avatar.
public string? GetAvatarUrl(int size = 160)
Parameters
sizeint
Returns
GetDefaultAvatarUrl()
Get the default avatar for the user.
public string GetDefaultAvatarUrl()