Use ApplicationId for interactions (#2044)
This commit is contained in:
18
src/Discord.Net.WebSocket/API/Gateway/PartialApplication.cs
Normal file
18
src/Discord.Net.WebSocket/API/Gateway/PartialApplication.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord.API.Gateway
|
||||
{
|
||||
internal class PartialApplication
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonProperty("flags")]
|
||||
public ApplicationFlags Flags { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,8 @@ namespace Discord.API.Gateway
|
||||
public Channel[] PrivateChannels { get; set; }
|
||||
[JsonProperty("relationships")]
|
||||
public Relationship[] Relationships { get; set; }
|
||||
[JsonProperty("application")]
|
||||
public PartialApplication Application { get; set; }
|
||||
|
||||
//Ignored
|
||||
/*[JsonProperty("user_settings")]
|
||||
|
||||
Reference in New Issue
Block a user