From ce613cb3cc26c1a12ce6f6c79aaf01655b6f643b Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 30 May 2020 00:10:06 -0500 Subject: [PATCH] Add discord object type. --- src/discordobject.nim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/discordobject.nim diff --git a/src/discordobject.nim b/src/discordobject.nim new file mode 100644 index 0000000..101ee29 --- /dev/null +++ b/src/discordobject.nim @@ -0,0 +1,7 @@ +type + snowflake = uint64 + DiscordObject* = object of RootObj + id*: snowflake + +proc `==`(obj1: DiscordObject, obj2: DiscordObject): bool = + return obj1.id == obj2.id \ No newline at end of file