This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
nimcord/src/nimcordutils.nim

14 lines
277 B
Nim
Raw Normal View History

2020-05-31 05:10:18 +00:00
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