Type Method

fakeSnowflake(date:)

Creates a fake snowflake that would have been created at the specified date Useful for things like the messages before/after/around endpoint

Declaration

static func fakeSnowflake(date: Date) -> Snowflake?

Return Value

A fake snowflake with the specified date, or nil if the specified date will not make a valid snowflake

Parameters

date

The date to make a fake snowflake for