mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-12 22:43:32 +00:00
discord: Ack.Token nullable
This commit is contained in:
parent
08a1db0e4a
commit
30c63e66d1
|
@ -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.
|
// Ack is the read state of a channel. This is undocumented.
|
||||||
type Ack struct {
|
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
|
// 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
|
// write to the ack variable passed in. If this method is called asynchronously,
|
||||||
// asynchronously, then ack should be mutex guarded.
|
// then ack should be mutex guarded.
|
||||||
func (c *Client) Ack(channelID discord.ChannelID, messageID discord.MessageID, ack *Ack) error {
|
func (c *Client) Ack(channelID discord.ChannelID, messageID discord.MessageID, ack *Ack) error {
|
||||||
return c.RequestJSON(
|
return c.RequestJSON(
|
||||||
ack, "POST",
|
ack, "POST",
|
||||||
|
|
Loading…
Reference in a new issue