Add Bot.Roles

This commit is contained in:
blide 2018-09-08 01:21:41 +03:00 committed by blide
parent c26accb28f
commit 1aa6f00543

View File

@ -39,6 +39,9 @@ const (
ChannelFeatureReceive string = "receive"
ChannelFeatureSend string = "send"
ChannelFeatureBoth string = "both"
BotRoleDistributor string = "distributor"
BotRoleResponsible string = "responsible"
)
// MgClient type
@ -54,6 +57,7 @@ type (
BotsRequest struct {
ID uint64 `url:"id,omitempty"`
Active uint8 `url:"active,omitempty"`
Role string `url:"role,omitempty"`
Since string `url:"since,omitempty"`
Until string `url:"until,omitempty"`
}
@ -145,6 +149,7 @@ type (
InfoRequest struct {
Name string `url:"name,omitempty" json:"name"`
Avatar string `url:"avatar_url,omitempty" json:"avatar_url"`
Roles []string `url:"roles,omitempty" json:"roles"`
}
CommandsRequest struct {
@ -172,6 +177,7 @@ type (
DeactivatedAt string `json:"deactivated_at,omitempty"`
IsActive bool `json:"is_active"`
IsSelf bool `json:"is_self"`
Roles []string `json:"roles,omitempty"`
}
ChannelResponseItem struct {