added simple cache system.
This commit is contained in:
@@ -19,6 +19,7 @@ type Client struct {
|
||||
Token string
|
||||
Socket gowebsocket.Socket
|
||||
HTTP *http.Client
|
||||
Cache *Cache
|
||||
|
||||
// Event Functions
|
||||
OnReadyFunctions []func()
|
||||
@@ -30,6 +31,14 @@ type Client struct {
|
||||
OnChannelDeleteFunctions []func(channel_id string)
|
||||
}
|
||||
|
||||
// Client cache struct.
|
||||
type Cache struct {
|
||||
Users []*User `json:"users"`
|
||||
Servers []*Server `json:"servers"`
|
||||
Channels []*Channel `json:"channels"`
|
||||
Members []*Member `json:"members"`
|
||||
}
|
||||
|
||||
// Self bot struct.
|
||||
type SelfBot struct {
|
||||
Email string `json:"-"`
|
||||
|
||||
Reference in New Issue
Block a user