Browse Source

fix: include MessageFlags and SuppressEmbedParams

tags/2.2.0
Christopher Felegy 5 years ago
parent
commit
d6d4429c3d
2 changed files with 21 additions and 0 deletions
  1. +10
    -0
      src/Discord.Net.Rest/API/Common/MessageFlags.cs
  2. +11
    -0
      src/Discord.Net.Rest/API/Rest/SuppressEmbedParams.cs

+ 10
- 0
src/Discord.Net.Rest/API/Common/MessageFlags.cs View File

@@ -0,0 +1,10 @@
using System;

namespace Discord.API
{
[Flags]
internal enum MessageFlags : byte // probably safe to constrain this to 8 values, if not, it's internal so who cares
{
Suppressed = 0x04,
}
}

+ 11
- 0
src/Discord.Net.Rest/API/Rest/SuppressEmbedParams.cs View File

@@ -0,0 +1,11 @@
using Newtonsoft.Json;

namespace Discord.API.Rest
{
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
internal class SuppressEmbedParams
{
[JsonProperty("suppress")]
public bool Suppressed { get; set; }
}
}

Loading…
Cancel
Save