Table of Contents

Class Webhook

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Fluxer entity with client attached.

public class Webhook : Entity, IWebhook, ISnowflake
Inheritance
object
Webhook
Implements
Extension Methods

Properties

AvatarHash

The hash of the webhook avatar image.

public string? AvatarHash { get; }

Property Value

string

ChannelId

The ID of the channel this webhook posts to.

public ulong? ChannelId { get; }

Property Value

ulong?

CreatedAt

Object created at UTC date.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

Creator

public User? Creator { get; }

Property Value

User

GuildId

The ID of the guild this webhook belongs to.

public ulong? GuildId { get; }

Property Value

ulong?

Id

Unique identifier (snowflake) for the object.

public ulong Id { get; }

Property Value

ulong

Name

The display name of the webhook.

public string Name { get; }

Property Value

string

Token

The secure token used to execute the webhook.

public string? Token { get; }

Property Value

string

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

client FluxerBaseClient
json WebhookJson

Returns

Webhook

GetAvatarOrDefaultUrl(int)

Get the webhooks's avatar or fallback to default.

public string GetAvatarOrDefaultUrl(int size = 160)

Parameters

size int

Returns

string

GetAvatarUrl(int)

Get the webhooks's avatar.

public string? GetAvatarUrl(int size = 160)

Parameters

size int

Returns

string

GetDefaultAvatarUrl()

Get the default avatar for the user.

public string GetDefaultAvatarUrl()

Returns

string