Add discord object type.

This commit is contained in:
SeanOMik 2020-05-30 00:10:06 -05:00
parent ce11b1613c
commit ce613cb3cc
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 7 additions and 0 deletions

7
src/discordobject.nim Normal file
View File

@ -0,0 +1,7 @@
type
snowflake = uint64
DiscordObject* = object of RootObj
id*: snowflake
proc `==`(obj1: DiscordObject, obj2: DiscordObject): bool =
return obj1.id == obj2.id