downloadMessages method

  1. @override
Stream<Message> downloadMessages(
  1. {int limit = 50,
  2. Snowflake? after,
  3. Snowflake? around,
  4. Snowflake? before}
)
override

Gets several Message objects from API. Only one of after, before, around can be specified, otherwise, it will throw.

var messages = await channel.downloadMessages(limit: 100, after: Snowflake("222078108977594368"));

Implementation

@override
Stream<Message> downloadMessages({int limit = 50, Snowflake? after, Snowflake? around, Snowflake? before}) =>
    client.httpEndpoints.downloadMessages(this.id, limit: limit, after: after, around: around, before: before);