Skip to content

Commit

Permalink
Add warning for bulk-delete endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Still Hsu committed May 5, 2018
1 parent adae5ff commit d8bb9e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Discord.Net.Core/Entities/Channels/ITextChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,20 @@ public interface ITextChannel : IMessageChannel, IMentionable, IGuildChannel
/// </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>
Expand Down

0 comments on commit d8bb9e7

Please sign in to comment.