From 5d3383025508d6baa76ba06fc68c1b88f0094748 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 31 May 2020 00:10:18 -0500 Subject: [PATCH] Create utils file for various things. --- src/nimcordutils.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/nimcordutils.nim diff --git a/src/nimcordutils.nim b/src/nimcordutils.nim new file mode 100644 index 0000000..52bc362 --- /dev/null +++ b/src/nimcordutils.nim @@ -0,0 +1,14 @@ +include parseutils, json, httpClient +from discordobject import snowflake + +proc getIDFromJson*(str: string): uint64 = + var num: uint64 + discard parseOct(str, num) + return num + + +type RateLimitBucketType = enum + CHANNEL, + GUILD, + WEBHOOK, + GLOBAL \ No newline at end of file