Interface IWebhook
public interface IWebhook : ISnowflake
- Inherited Members
Properties
AvatarHash
The hash of the webhook avatar image.
string? AvatarHash { get; }
Property Value
ChannelId
The ID of the channel this webhook posts to.
ulong? ChannelId { get; }
Property Value
Creator
The user that created this webhook.
IUser? Creator { get; }
Property Value
GuildId
The ID of the guild this webhook belongs to.
ulong? GuildId { get; }
Property Value
Name
The display name of the webhook.
string Name { get; }
Property Value
Token
The secure token used to execute the webhook.
string? Token { get; }
Property Value
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
sizeint
Returns
GetAvatarUrl(int)
Get the webhooks's avatar.
string? GetAvatarUrl(int size)
Parameters
sizeint
Returns
GetDefaultAvatarUrl()
Get the default avatar for the user.
string GetDefaultAvatarUrl()