Added Topic support

This commit is contained in:
RogueException
2015-09-25 17:12:40 -03:00
parent 1d485eb641
commit f4fa3bb8d4
2 changed files with 4 additions and 0 deletions

View File

@@ -110,6 +110,8 @@ namespace Discord.API
public bool IsPrivate;
[JsonProperty("position")]
public int Position;
[JsonProperty(PropertyName = "topic")]
public string Topic;
[JsonProperty("permission_overwrites")]
public PermissionOverwrite[] PermissionOverwrites;
[JsonProperty("recipient")]

View File

@@ -25,6 +25,8 @@ namespace Discord
/// <summary> Returns the name of this channel. </summary>
public string Name { get { return !IsPrivate ? $"{_name}" : $"@{Recipient.Name}"; } internal set { _name = value; } }
/// <summary> Returns the topic associated with this channel. </summary>
public string Topic { get; internal set; }
/// <summary> Returns the position of this channel in the channel list for this server. </summary>
public int Position { get; internal set; }
/// <summary> Returns false is this is a public chat and true if this is a private chat with another user (see Recipient). </summary>