Browse Source

Add warning for bulk-delete endpoint

pull/1161/head
Still Hsu 7 years ago
parent
commit
d8bb9e7aaa
No known key found for this signature in database GPG Key ID: 8601A145FDA95209
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/Discord.Net.Core/Entities/Channels/ITextChannel.cs

+ 8
- 0
src/Discord.Net.Core/Entities/Channels/ITextChannel.cs View File

@@ -31,12 +31,20 @@ namespace Discord
/// </summary>
/// <param name="messages">The messages to be bulk-deleted.</param>
/// <param name="options">The options to be used when sending the request.</param>
/// <remarks>
/// &gt; [!IMPORTANT]
/// &gt; This method can only remove messages that are posted within 14 days!
/// </remarks>
Task DeleteMessagesAsync(IEnumerable<IMessage> messages, RequestOptions options = null);
/// <summary>
/// Bulk-deletes multiple messages.
/// </summary>
/// <param name="messageIds">The IDs of the messages to be bulk-deleted.</param>
/// <param name="options">The options to be used when sending the request.</param>
/// <remarks>
/// &gt; [!IMPORTANT]
/// &gt; This method can only remove messages that are posted within 14 days!
/// </remarks>
Task DeleteMessagesAsync(IEnumerable<ulong> messageIds, RequestOptions options = null);

/// <summary>


Loading…
Cancel
Save