Browse Source

Fix documentation for SlowMode

pull/1218/head
Still Hsu 7 years ago
parent
commit
e9243ae270
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
3 changed files with 8 additions and 2 deletions
  1. +6
    -2
      src/Discord.Net.Core/Entities/Channels/TextChannelProperties.cs
  2. +1
    -0
      src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs
  3. +1
    -0
      src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs

+ 6
- 2
src/Discord.Net.Core/Entities/Channels/TextChannelProperties.cs View File

@@ -1,3 +1,5 @@
using System;

namespace Discord
{
/// <summary>
@@ -18,9 +20,11 @@ namespace Discord
/// Gets or sets the slow-mode ratelimit in seconds for this channel.
/// </summary>
/// <remarks>
/// Setting this value to <c>0</c> 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 <c>0</c> will disable slow-mode for this channel.
/// <note>
/// Users with <see cref="Discord.ChannelPermission.ManageMessages" /> will be exempt from slow-mode.
/// Users with <see cref="Discord.ChannelPermission.ManageMessages"/> or
/// <see cref="ChannelPermission.ManageChannels"/> will be exempt from slow-mode.
/// </note>
/// </remarks>
/// <exception cref="ArgumentOutOfRangeException">Thrown if the value does not fall within [0, 120].</exception>


+ 1
- 0
src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs View File

@@ -16,6 +16,7 @@ namespace Discord.Rest
{
/// <inheritdoc />
public string Topic { get; private set; }
/// <inheritdoc />
public int SlowModeInterval { get; private set; }
/// <inheritdoc />
public ulong? CategoryId { get; private set; }


+ 1
- 0
src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs View File

@@ -20,6 +20,7 @@ namespace Discord.WebSocket

/// <inheritdoc />
public string Topic { get; private set; }
/// <inheritdoc />
public int SlowModeInterval { get; private set; }
/// <inheritdoc />
public ulong? CategoryId { get; private set; }


Loading…
Cancel
Save