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