sway/send_tick.go

15 lines
226 B
Go
Raw Normal View History

package sway
2024-02-14 16:48:50 +01:00
func (c *Client) SendTick(payload string) error {
result, err := sendMessage[commandResult](c, 10, payload)
if err != nil {
return err
}
if result.HasError() {
return result.GetError()
}
return nil
}