Create utils file for various things.

This commit is contained in:
SeanOMik 2020-05-31 00:10:18 -05:00
parent 44aee846b1
commit 5d33830255
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 14 additions and 0 deletions

14
src/nimcordutils.nim Normal file
View File

@ -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