added channel struct.

This commit is contained in:
5elenay 2021-08-20 21:33:34 +03:00
parent 14ee6319cc
commit 27584269dd

21
channel.go Normal file
View File

@ -0,0 +1,21 @@
package revoltgo
// Channel struct.
type Channel struct {
Client *Client
Id string `json:"_id"`
ChannelType string `json:"channel_type"`
UserId string `json:"user"`
Nonce string `json:"nonce"`
Active bool `json:"active"`
Recipients []string `json:"recipients"`
LastMessage map[string]string `json:"last_message"`
Name string `json:"name"`
OwnerId string `json:"owner"`
Description string `json:"description"`
Icon *Attachment `json:"icon"`
DefaultPermissions int `json:"default_permissions"`
RolePermissions int `json:"role_permissions"`
Permissions int `json:"permissions"`
}