1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-02-08 20:47:13 +00:00

discord: Ack.Token nullable

This commit is contained in:
diamondburned 2022-04-02 21:55:26 -07:00
parent 08a1db0e4a
commit 30c63e66d1
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -352,12 +352,12 @@ func (c *Client) RemoveRecipient(channelID discord.ChannelID, userID discord.Use
// Ack is the read state of a channel. This is undocumented.
type Ack struct {
Token string `json:"token"`
Token *string `json:"token"`
}
// Ack marks the read state of a channel. This is undocumented. The method will
// write to the ack variable passed in. If this method is called
// asynchronously, then ack should be mutex guarded.
// write to the ack variable passed in. If this method is called asynchronously,
// then ack should be mutex guarded.
func (c *Client) Ack(channelID discord.ChannelID, messageID discord.MessageID, ack *Ack) error {
return c.RequestJSON(
ack, "POST",