Class DiscordWebhookData
Represents a discord Webhook Structure API model. Docs: https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure
Implements
Inherited Members
Namespace: Color_Chan.Discord.Core.Common.API.DataModels
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordWebhookData : IEquatable<DiscordWebhookData>
Properties
| Improve this Doc View SourceApplicationId
The bot/OAuth2 application that created this webhook.
Declaration
[JsonPropertyName("application_id")]
public ulong? ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Avatar
The default user avatar hash of the webhook.
Declaration
[JsonPropertyName("avatar")]
public string Avatar { get; set; }
Property Value
Type | Description |
---|---|
String |
ChannelId
The channel id this webhook is for, if any.
Declaration
[JsonPropertyName("channel_id")]
public ulong? ChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Creator
The user this webhook was created by (not returned when getting a webhook with its token).
Declaration
[JsonPropertyName("user")]
public DiscordUserData Creator { get; set; }
Property Value
Type | Description |
---|---|
DiscordUserData |
GuildId
The guild id this webhook is for, if any.
Declaration
[JsonPropertyName("guild_id")]
public ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Id
The id of the webhook.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
The default name of the webhook.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
PartialChannel
The channel that this webhook is following (returned for Channel Follower Webhooks).
Declaration
[JsonPropertyName("source_guild")]
public DiscordChannelData PartialChannel { get; set; }
Property Value
Type | Description |
---|---|
DiscordChannelData |
PartialGuild
The guild of the channel that this webhook is following (returned for Channel Follower Webhooks).
Declaration
[JsonPropertyName("source_guild")]
public DiscordGuildData PartialGuild { get; set; }
Property Value
Type | Description |
---|---|
DiscordGuildData |
Token
The secure token of the webhook (returned for Incoming Webhooks).
Declaration
[JsonPropertyName("token")]
public string Token { get; set; }
Property Value
Type | Description |
---|---|
String |
Type
The type of the webhook.
Declaration
[JsonPropertyName("type")]
public DiscordWebhookType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordWebhookType |
Url
The url used for executing the webhook (returned by the webhooks OAuth2 flow).
Declaration
[JsonPropertyName("url")]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
String |