This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
nimcord/src/discordobject.nim

7 lines
188 B
Nim
Raw Normal View History

2020-05-30 05:10:06 +00:00
type
2020-05-30 05:11:46 +00:00
snowflake* = uint64
2020-05-30 05:10:06 +00:00
DiscordObject* = object of RootObj
id*: snowflake
proc `==`(obj1: DiscordObject, obj2: DiscordObject): bool =
return obj1.id == obj2.id