added unknown event handler.

This commit is contained in:
5elenay
2021-08-27 11:02:07 +03:00
parent 6554800a09
commit 02e22d0196
2 changed files with 13 additions and 0 deletions

View File

@@ -179,6 +179,13 @@ func (c *Client) handleEvents(rawData *struct {
for _, i := range c.OnChannelDeleteFunctions {
i(data.ChannelId)
}
} else {
// Unknown Event
if c.OnUnknownEventFunctions != nil {
for _, i := range c.OnUnknownEventFunctions {
i(message)
}
}
}
}