diff --git a/src/Discord.Net/API/Common.cs b/src/Discord.Net/API/Common.cs index 79c6ab2ec..49962c8a2 100644 --- a/src/Discord.Net/API/Common.cs +++ b/src/Discord.Net/API/Common.cs @@ -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")] diff --git a/src/Discord.Net/Models/Channel.cs b/src/Discord.Net/Models/Channel.cs index 0c8ac6e7e..22532c770 100644 --- a/src/Discord.Net/Models/Channel.cs +++ b/src/Discord.Net/Models/Channel.cs @@ -25,6 +25,8 @@ namespace Discord /// Returns the name of this channel. public string Name { get { return !IsPrivate ? $"{_name}" : $"@{Recipient.Name}"; } internal set { _name = value; } } + /// Returns the topic associated with this channel. + public string Topic { get; internal set; } /// Returns the position of this channel in the channel list for this server. public int Position { get; internal set; } /// Returns false is this is a public chat and true if this is a private chat with another user (see Recipient).