Correctly initialize subscribed topics list
This commit is contained in:
@ -66,6 +66,7 @@ type TwitchPubSub struct {
|
|||||||
func NewTwitchPubSub() *TwitchPubSub {
|
func NewTwitchPubSub() *TwitchPubSub {
|
||||||
t := &TwitchPubSub{
|
t := &TwitchPubSub{
|
||||||
responseCh: make(chan *twitchMessage),
|
responseCh: make(chan *twitchMessage),
|
||||||
|
SubscribedTopics: make([]string, 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
return t
|
return t
|
||||||
|
Reference in New Issue
Block a user