#Snowflake type guard

1 messages · Page 1 of 1 (latest)

atomic burrowBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sage walrus
#

There isn't. You can just use as Snowflake or as string because Snowflake is literally type Snowflake = string;

gloomy wedge
#

I guess it would be possible to create a type guard using the Regex for Snowflakes in discord-utilities right?

sage walrus
#

im sorry i cant quite see what that would do because snowflakes are just strings

#

but sure make a PR I guess