func (c *Client) Unregister() error {
	_, err := c.Exec("servernotifyunregister")
	return err
}
Unregister unregisters all events previously registered.
package ts3
import (
	"strings"
)
type NotifyCategory string
const (
	ServerEvents NotifyCategory = "server"
	ChannelEvents NotifyCategory = "channel"
	TextServerEvents NotifyCategory = "textserver"
	TextChannelEvents NotifyCategory = "textchannel"
	TextPrivateEvents NotifyCategory = "textprivate"
	TokenUsedEvents NotifyCategory = "tokenused"
)
type Notification struct {
	Type string
	Data map[string]string
}
func (c *Client) Notifications() <-chan Notification {
	return c.notify
}
func (c *Client) Register(event NotifyCategory) error {
	if event == ChannelEvents {
		return c.RegisterChannel(0)
	}
	_, err := c.ExecCmd(NewCmd("servernotifyregister").WithArgs(
		NewArg("event", event),
	))
	return err
}
func (c *Client) RegisterChannel(id uint) error {
	_, err := c.ExecCmd(NewCmd("servernotifyregister").WithArgs(
		NewArg("event", ChannelEvents),
		NewArg("id", id),
	))
	return err
}