itd/api/notify.go

14 lines
263 B
Go
Raw Normal View History

2021-10-24 01:41:03 +00:00
package api
import "go.arsenm.dev/itd/internal/types"
func (c *Client) Notify(title string, body string) error {
_, err := c.request(types.Request{
Type: types.ReqTypeNotify,
Data: types.ReqDataNotify{
Title: title,
Body: body,
},
})
return err
}