Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Channels/Channel.cs

72 lines
1.8 KiB
C#
Raw Normal View History

2017-05-14 12:02:51 +00:00
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;
}
}