Interface IWebhook
Represents a webhook object on Discord.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public interface IWebhook : IDeletable, ISnowflakeEntity, IEntity<ulong>
Properties​
Token​
Gets the token of this webhook.
View Source​
Declaration
string Token { get; }
Name​
Gets the default name of this webhook.
View Source​
Declaration
string Name { get; }
AvatarId​
Gets the ID of this webhook's default avatar.
View Source​
Declaration
string AvatarId { get; }
Channel​
Gets the channel for this webhook.
View Source​
Declaration
ITextChannel Channel { get; }
ChannelId​
Gets the ID of the channel for this webhook.
View Source​
Declaration
ulong ChannelId { get; }
Guild​
Gets the guild owning this webhook.
View Source​
Declaration
IGuild Guild { get; }
GuildId​
Gets the ID of the guild owning this webhook.
View Source​
Declaration
ulong? GuildId { get; }
Creator​
Gets the user that created this webhook.
View Source​
Declaration
IUser Creator { get; }
ApplicationId​
Gets the ID of the application owning this webhook.
View Source​
Declaration
ulong? ApplicationId { get; }
Methods​
GetAvatarUrl(ImageFormat, UInt16)​
Gets the URL to this webhook's default avatar.
View Source​
Declaration
string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
Returns​
System.String
Parameters​
Type | Name |
---|---|
Discord.ImageFormat | format |
System.UInt16 | size |
ModifyAsync(Action<WebhookProperties>, RequestOptions)​
Modifies this webhook.
View Source​
Declaration
Task ModifyAsync(Action<WebhookProperties> func, RequestOptions options = null)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name |
---|---|
System.Action<Discord.WebhookProperties> | func |
Discord.RequestOptions | options |