This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix: include MessageFlags and SuppressEmbedParams
pull/1333/head
Christopher Felegy
6 years ago
parent
363d1c6da6
commit
d6d4429c3d
2 changed files
with
21 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-0
src/Discord.Net.Rest/API/Common/MessageFlags.cs
+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; }
}
}
Write
Preview
Loading…
Cancel
Save