You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
831 B
29 lines
831 B
#pragma warning disable CS1591
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Discord.API.Rest
|
|
{
|
|
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
|
|
internal class CreateWebhookMessageParams
|
|
{
|
|
[JsonProperty("content")]
|
|
public string Content { get; }
|
|
|
|
[JsonProperty("nonce")]
|
|
public Optional<string> Nonce { get; set; }
|
|
[JsonProperty("tts")]
|
|
public Optional<bool> IsTTS { get; set; }
|
|
[JsonProperty("embeds")]
|
|
public Optional<Embed[]> Embeds { get; set; }
|
|
[JsonProperty("username")]
|
|
public Optional<string> Username { get; set; }
|
|
[JsonProperty("avatar_url")]
|
|
public Optional<string> AvatarUrl { get; set; }
|
|
|
|
public CreateWebhookMessageParams(string content)
|
|
{
|
|
Content = content;
|
|
}
|
|
}
|
|
}
|