Skip to content

isSnowflake

function isSnowflake(id): id is string;

Check if the value is a valid Discord snowflake.

any

The value to check

id is string

true when the value is a valid snowflake