13 lines
340 B
Nim
13 lines
340 B
Nim
import websocket, cache, user
|
|
|
|
type DiscordClient* = ref object
|
|
## Discord Client
|
|
token*: string
|
|
clientUser*: User
|
|
cache*: Cache
|
|
ws*: AsyncWebSocket
|
|
heartbeatInterval*: int
|
|
heartbeatAcked*: bool
|
|
lastSequence*: int
|
|
|
|
var globalDiscordClient*: DiscordClient ## Global instance of the DiscordClient. |