72 lines
1.8 KiB
C#
72 lines
1.8 KiB
C#
|
using Maki.Structures.Users;
|
|||
|
using Newtonsoft.Json;
|
|||
|
|
|||
|
namespace Maki.Structures.Channels
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Discord API Channel structure
|
|||
|
/// </summary>
|
|||
|
internal struct Channel
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// the id of this private message
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("id")]
|
|||
|
public ulong Id;
|
|||
|
|
|||
|
[JsonProperty("type")]
|
|||
|
public ChannelType Type;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// the id of the last message sent in this DM
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("last_message_id")]
|
|||
|
public ulong? LastMessageId;
|
|||
|
|
|||
|
[JsonProperty("recipients")]
|
|||
|
public User[] Recipients;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// the id of the guild
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("guild_id")]
|
|||
|
public ulong? GuildId;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// the name of the channel (2-100 characters)
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("name")]
|
|||
|
public string Name;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// sorting position of the channel
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("position")]
|
|||
|
public int? Position;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// an array of overwrite objects
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("permission_overwrites")]
|
|||
|
public PermissionOverwrite[] PermissionOverwrites;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// the channel topic (0-1024 characters)
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("topic")]
|
|||
|
public string Topic;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// the bitrate (in bits) of the voice channel
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("bitrate")]
|
|||
|
public int? Bitrate;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// the user limit of the voice channel
|
|||
|
/// </summary>
|
|||
|
[JsonProperty("user_limit")]
|
|||
|
public int? UserLimit;
|
|||
|
}
|
|||
|
}
|