From 30c63e66d18733f3c07adf7c2d9a359f8471dc97 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sat, 2 Apr 2022 21:55:26 -0700 Subject: [PATCH] discord: Ack.Token nullable --- api/channel.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/channel.go b/api/channel.go index 3c6bc0c..e892238 100644 --- a/api/channel.go +++ b/api/channel.go @@ -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",