downloadMessages method Null safety

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

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

Stream<Message> downloadMessages({int limit = 50, Snowflake? after, Snowflake? around, Snowflake? before});