added channel struct.
This commit is contained in:
parent
14ee6319cc
commit
27584269dd
21
channel.go
Normal file
21
channel.go
Normal 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"`
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user