Return messages_sent
`from channel-preview
This commit is contained in:
parent
e6709cd4af
commit
9c53cc52e9
@ -23,6 +23,7 @@ type ChannelPreview struct {
|
|||||||
InternalName string `json:"internal_name"`
|
InternalName string `json:"internal_name"`
|
||||||
DisplayName string `json:"display_name"`
|
DisplayName string `json:"display_name"`
|
||||||
DescriptionName *string `json:"description_name"`
|
DescriptionName *string `json:"description_name"`
|
||||||
|
MessagesSent int `json:"messages_sent"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Channel) WithSubscription(sub *Subscription) ChannelWithSubscription {
|
func (c Channel) WithSubscription(sub *Subscription) ChannelWithSubscription {
|
||||||
@ -39,5 +40,6 @@ func (c Channel) Preview() ChannelPreview {
|
|||||||
InternalName: c.InternalName,
|
InternalName: c.InternalName,
|
||||||
DisplayName: c.DisplayName,
|
DisplayName: c.DisplayName,
|
||||||
DescriptionName: c.DescriptionName,
|
DescriptionName: c.DescriptionName,
|
||||||
|
MessagesSent: c.MessagesSent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user