Create utils file for various things.
This commit is contained in:
parent
44aee846b1
commit
5d33830255
|
@ -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
|
Reference in New Issue