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

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