Add discord object type.
This commit is contained in:
parent
ce11b1613c
commit
ce613cb3cc
|
@ -0,0 +1,7 @@
|
||||||
|
type
|
||||||
|
snowflake = uint64
|
||||||
|
DiscordObject* = object of RootObj
|
||||||
|
id*: snowflake
|
||||||
|
|
||||||
|
proc `==`(obj1: DiscordObject, obj2: DiscordObject): bool =
|
||||||
|
return obj1.id == obj2.id
|
Reference in New Issue