downloadMessages method
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);