You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.7 KiB
54 lines
1.7 KiB
4 years ago
|
#pragma warning disable CS1591
|
||
|
using Newtonsoft.Json;
|
||
|
using System;
|
||
|
|
||
|
namespace Discord.API
|
||
|
{
|
||
|
internal class Channel
|
||
|
{
|
||
|
//Shared
|
||
|
[JsonProperty("id")]
|
||
|
public ulong Id { get; set; }
|
||
|
[JsonProperty("type")]
|
||
|
public ChannelType Type { get; set; }
|
||
|
[JsonProperty("last_message_id")]
|
||
|
public ulong? LastMessageId { get; set; }
|
||
|
|
||
|
//GuildChannel
|
||
|
[JsonProperty("guild_id")]
|
||
|
public Optional<ulong> GuildId { get; set; }
|
||
|
[JsonProperty("name")]
|
||
|
public Optional<string> Name { get; set; }
|
||
|
[JsonProperty("position")]
|
||
|
public Optional<int> Position { get; set; }
|
||
|
[JsonProperty("permission_overwrites")]
|
||
|
public Optional<Overwrite[]> PermissionOverwrites { get; set; }
|
||
|
[JsonProperty("parent_id")]
|
||
|
public ulong? CategoryId { get; set; }
|
||
|
|
||
|
//TextChannel
|
||
|
[JsonProperty("topic")]
|
||
|
public Optional<string> Topic { get; set; }
|
||
|
[JsonProperty("last_pin_timestamp")]
|
||
|
public Optional<DateTimeOffset?> LastPinTimestamp { get; set; }
|
||
|
[JsonProperty("nsfw")]
|
||
|
public Optional<bool> Nsfw { get; set; }
|
||
|
[JsonProperty("rate_limit_per_user")]
|
||
|
public Optional<int> SlowMode { get; set; }
|
||
|
|
||
|
//VoiceChannel
|
||
|
[JsonProperty("bitrate")]
|
||
|
public Optional<int> Bitrate { get; set; }
|
||
|
[JsonProperty("user_limit")]
|
||
|
public Optional<int> UserLimit { get; set; }
|
||
|
|
||
|
//PrivateChannel
|
||
|
[JsonProperty("recipients")]
|
||
|
public Optional<User[]> Recipients { get; set; }
|
||
|
|
||
|
//GroupChannel
|
||
|
[JsonProperty("icon")]
|
||
|
public Optional<string> Icon { get; set; }
|
||
|
}
|
||
|
}
|