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.
2020-06-18 03:18:54 +00:00
|
|
|
import websocket, cache, user
|
|
|
|
|
2020-06-18 03:36:37 +00:00
|
|
|
type DiscordClient* = ref object
|
|
|
|
## Discord Client
|
|
|
|
token*: string
|
|
|
|
clientUser*: User
|
|
|
|
cache*: Cache
|
|
|
|
ws*: AsyncWebSocket
|
|
|
|
heartbeatInterval*: int
|
|
|
|
heartbeatAcked*: bool
|
2020-06-19 06:32:28 +00:00
|
|
|
lastSequence*: int
|
|
|
|
|
|
|
|
var globalDiscordClient*: DiscordClient ## Global instance of the DiscordClient.
|