#Fetch Channel Message History

1 messages · Page 1 of 1 (latest)

cursive cedar
#

Looking to iterate through all messages within a date range

var fromSnowflake = SnowflakeUtils.ToSnowflake(fromDate);
var toSnowflake = SnowflakeUtils.ToSnowflake(toDate);
var messages = await channel.GetMessagesAsync(fromSnowflake, Direction.After).FlattenAsync();
#

Unsure of how to do it as the method takes in a messageId, instead of a datetimeoffset