struct Discord::Snowflake
- Discord::Snowflake
- Struct
- Value
- Object
Overview
Struct representing a Discord ID
Included Modules
- Comparable(Discord::Snowflake)
Defined in:
discordcr/snowflake.crConstructors
- .new(string : String)
- .new(parser : JSON::PullParser)
-
.new(time : Time)
Creates a
Snowflake
embedded with the given timestamp - .new(value : UInt64)
Instance Method Summary
- #<=>(other : Snowflake)
-
#creation_time
The time at which this snowflake was created
- #to_json(builder : JSON::Builder)
-
#to_u64 : UInt64
Compatibility with UInt64 API
- #value : UInt64