From 32c9d0e2dd5d06c75277a77e108bb22c73c00c1a Mon Sep 17 00:00:00 2001 From: Casino Boyale Date: Tue, 10 Jul 2018 21:08:17 +0100 Subject: [PATCH] SocketTextChannel amendments --- .../Entities/Channels/SocketTextChannel.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs index 4984fb54a..e18bd9be8 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketTextChannel.cs @@ -26,7 +26,7 @@ namespace Discord.WebSocket /// Gets the Category this channel belongs to. /// /// - /// An that this channel belongs to otherwise; null. + /// An that this channel belongs to; otherwise null. /// public ICategoryChannel Category => CategoryId.HasValue ? Guild.GetChannel(CategoryId.Value) as ICategoryChannel : null; @@ -77,10 +77,10 @@ namespace Discord.WebSocket /// /// Gets the message associated with the passed . /// - /// The snowflake identifier of the message you want to retrieve + /// The snowflake identifier of the message you want to retrieve. /// The options to be used when sending the request. /// - /// An awaitable . + /// An awaitable containing an . /// public async Task GetMessageAsync(ulong id, RequestOptions options = null) { @@ -91,12 +91,13 @@ namespace Discord.WebSocket } /// - /// Gets a nested collection of messages. + /// Gets the last N messages from this message channel. /// /// The number of messages you want to get. /// The options to be used when sending the request. /// - /// An awaitable containing an . + /// Paged collection of messages. Flattening the paginated response into a collection of messages with + /// is required if you wish to access the messages. /// public IAsyncEnumerable> GetMessagesAsync(int limit = DiscordConfig.MaxMessagesPerBatch, RequestOptions options = null) => SocketChannelHelper.GetMessagesAsync(this, Discord, _messages, null, Direction.Before, limit, CacheMode.AllowDownload, options);