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
AvatarId
Gets the ID of this webhook's default avatar.
string AvatarId { get; }
Property Value
Channel
Gets the channel for this webhook.
IIntegrationChannel Channel { get; }
Property Value
ChannelId
Gets the ID of the channel for this webhook; null for Application webhooks.
ulong? ChannelId { get; }
Property Value
Creator
Gets the user that created this webhook.
IUser Creator { get; }
Property Value
Guild
Gets the guild owning this webhook.
IGuild Guild { get; }
Property Value
GuildId
Gets the ID of the guild owning this webhook.
ulong? GuildId { get; }
Property Value
Name
Gets the default name of this webhook.
string Name { get; }
Property Value
Token
Gets the token of this webhook; null if the Type is ChannelFollower.
string Token { get; }
Property Value
Type
Gets the type of this webhook.
WebhookType Type { get; }
Property Value
Methods
GetAvatarUrl(ImageFormat, ushort)
Gets the URL to this webhook's default avatar.
string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
Parameters
format
ImageFormatsize
ushort
Returns
ModifyAsync(Action<WebhookProperties>, RequestOptions)
Modifies this webhook.
Task ModifyAsync(Action<WebhookProperties> func, RequestOptions options = null)
Parameters
func
Action<WebhookProperties>options
RequestOptions