Class DiscordExecuteWebhook
Represents a discord Execute Webhook API request model. Docs: https://discord.com/developers/docs/resources/webhook#webhook-object-jsonform-params
Implements
System.IEquatable<DiscordExecuteWebhook>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Color_Chan.Discord.Core.Common.API.Params.Webhook
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordExecuteWebhook : IEquatable<DiscordExecuteWebhook>
Properties
| Improve this Doc View SourceAllowedMentions
Allowed mentions for the message.
Declaration
[JsonPropertyName("allowed_mentions")]
public DiscordAllowedMentionsData AllowedMentions { get; set; }
Property Value
Type | Description |
---|---|
DiscordAllowedMentionsData |
AvatarUrl
Override the default avatar of the webhook.
Declaration
[JsonPropertyName("avatar_url")]
public string AvatarUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Components
The components to include with the message.
Declaration
[JsonPropertyName("components")]
public IEnumerable<DiscordComponentData> Components { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordComponentData> |
Remarks
Requires an application-owned webhook.
Content
The message contents (up to 2000 characters).
Declaration
[JsonPropertyName("content")]
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Required when Embeds is not provided.
Embeds
Embedded rich content.
Declaration
[JsonPropertyName("embeds")]
public IEnumerable<DiscordEmbedData> Embeds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordEmbedData> |
Remarks
Required when Content is not provided.
Username
Override the default username of the webhook.
Declaration
[JsonPropertyName("username")]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UseTts
True if this is a TTS message.
Declaration
[JsonPropertyName("tts")]
public bool? UseTts { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Implements
System.IEquatable<T>