Skip to content

Commit d59334b

Browse files
committed
chore: add moderation support
1 parent f03e09d commit d59334b

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

stream.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package getstream
22

33
type Stream struct {
44
*Client
5-
chat *ChatClient
6-
video *VideoClient
7-
feeds *FeedsClient
5+
chat *ChatClient
6+
video *VideoClient
7+
feeds *FeedsClient
8+
moderation *ModerationClient
89
}
910

1011
func NewClientFromEnvVars(options ...ClientOption) (*Stream, error) {
@@ -67,3 +68,11 @@ func (s *Stream) Feeds() *FeedsClient {
6768
}
6869
return s.feeds
6970
}
71+
72+
// Moderation client
73+
func (s *Stream) Moderation() *ModerationClient {
74+
if s.moderation == nil {
75+
s.moderation = NewModerationClient(s.Client)
76+
}
77+
return s.moderation
78+
}

0 commit comments

Comments
 (0)