Ejemplo n.º 1
0
 /// <summary>
 /// Gets a list of messages in this channel.
 /// <para>Requires <see cref="DiscordPermission.ReadMessages"/>.</para>
 /// </summary>
 /// <param name="baseMessageId">The message ID the list will start at (is not included in the final list).</param>
 /// <param name="limit">Maximum number of messages to be returned.</param>
 /// <param name="getStrategy">The way messages will be located based on the <paramref name="baseMessageId"/>.</param>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <IReadOnlyList <DiscordMessage> > GetMessages(Snowflake baseMessageId, int?limit = null,
                                                           MessageGetStrategy getStrategy     = MessageGetStrategy.Before)
 {
     return(http.GetChannelMessages(Id, baseMessageId, limit, getStrategy));
 }