Table of Contents

Interface IWebhook

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a webhook object on Discord.

public interface IWebhook : IDeletable, ISnowflakeEntity, IEntity<ulong>
Inherited Members

Properties

ApplicationId

Gets the ID of the application owning this webhook.

ulong? ApplicationId { get; }

Property Value

ulong?

AvatarId

Gets the ID of this webhook's default avatar.

string AvatarId { get; }

Property Value

string

Channel

Gets the channel for this webhook.

IIntegrationChannel Channel { get; }

Property Value

IIntegrationChannel

ChannelId

Gets the ID of the channel for this webhook; null for Application webhooks.

ulong? ChannelId { get; }

Property Value

ulong?

Creator

Gets the user that created this webhook.

IUser Creator { get; }

Property Value

IUser

Guild

Gets the guild owning this webhook.

IGuild Guild { get; }

Property Value

IGuild

GuildId

Gets the ID of the guild owning this webhook.

ulong? GuildId { get; }

Property Value

ulong?

Name

Gets the default name of this webhook.

string Name { get; }

Property Value

string

Token

Gets the token of this webhook; null if the Type is ChannelFollower.

string Token { get; }

Property Value

string

Type

Gets the type of this webhook.

WebhookType Type { get; }

Property Value

WebhookType

Methods

GetAvatarUrl(ImageFormat, ushort)

Gets the URL to this webhook's default avatar.

string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)

Parameters

format ImageFormat
size ushort

Returns

string

ModifyAsync(Action<WebhookProperties>, RequestOptions)

Modifies this webhook.

Task ModifyAsync(Action<WebhookProperties> func, RequestOptions options = null)

Parameters

func Action<WebhookProperties>
options RequestOptions

Returns

Task