Table of Contents

Interface IWebhook

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll
public interface IWebhook : ISnowflake
Inherited Members

Properties

AvatarHash

The hash of the webhook avatar image.

string? AvatarHash { get; }

Property Value

string

ChannelId

The ID of the channel this webhook posts to.

ulong? ChannelId { get; }

Property Value

ulong?

Creator

The user that created this webhook.

IUser? Creator { get; }

Property Value

IUser

GuildId

The ID of the guild this webhook belongs to.

ulong? GuildId { get; }

Property Value

ulong?

Name

The display name of the webhook.

string Name { get; }

Property Value

string

Token

The secure token used to execute the webhook.

string? Token { get; }

Property Value

string

Remarks

Will be missing if you don't have access.

Methods

GetAvatarOrDefaultUrl(int)

Get the webhooks's avatar or fallback to default.

string GetAvatarOrDefaultUrl(int size)

Parameters

size int

Returns

string

GetAvatarUrl(int)

Get the webhooks's avatar.

string? GetAvatarUrl(int size)

Parameters

size int

Returns

string

GetDefaultAvatarUrl()

Get the default avatar for the user.

string GetDefaultAvatarUrl()

Returns

string