From e9243ae270a83ad4222fb07dfa76e57b64b13281 Mon Sep 17 00:00:00 2001
From: Still Hsu <341464@gmail.com>
Date: Sat, 13 Oct 2018 01:32:10 +0800
Subject: [PATCH] Fix documentation for SlowMode
---
.../Entities/Channels/TextChannelProperties.cs | 8 ++++++--
src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs | 1 +
.../Entities/Channels/SocketTextChannel.cs | 1 +
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/Discord.Net.Core/Entities/Channels/TextChannelProperties.cs b/src/Discord.Net.Core/Entities/Channels/TextChannelProperties.cs
index fbe4bfa43..fbc59dba6 100644
--- a/src/Discord.Net.Core/Entities/Channels/TextChannelProperties.cs
+++ b/src/Discord.Net.Core/Entities/Channels/TextChannelProperties.cs
@@ -1,3 +1,5 @@
+using System;
+
namespace Discord
{
///
@@ -18,9 +20,11 @@ namespace Discord
/// Gets or sets the slow-mode ratelimit in seconds for this channel.
///
///
- /// Setting this value to 0 will disable slow-mode for this channel.
+ /// Setting this value to anything above zero will require each user to wait X amount of second before
+ /// sending another message; setting this value to 0 will disable slow-mode for this channel.
///
- /// Users with will be exempt from slow-mode.
+ /// Users with or
+ /// will be exempt from slow-mode.
///
///
/// Thrown if the value does not fall within [0, 120].
diff --git a/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
index 58de066fb..e5078b6e0 100644
--- a/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
+++ b/src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
@@ -16,6 +16,7 @@ namespace Discord.Rest
{
///
public string Topic { get; private set; }
+ ///
public int SlowModeInterval { get; private set; }
///
public ulong? CategoryId { get; private set; }
diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
index 728a4ad53..9ddea1578 100644
--- a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
+++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs
@@ -20,6 +20,7 @@ namespace Discord.WebSocket
///
public string Topic { get; private set; }
+ ///
public int SlowModeInterval { get; private set; }
///
public ulong? CategoryId { get; private set; }