1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-17 12:23:08 +00:00

api: Revert "Add FollowUpInteraction"

This reverts commit 2aaa2002d8.

The initial goal of this addition is to be used for interaction
followups, but the interaction event already comes with the application
ID.

The addition was also not done properly, and no invalidation on event is
done.
This commit is contained in:
diamondburned 2022-08-20 16:15:50 -07:00
parent 7e49429f4b
commit 96b8e2b8e5
No known key found for this signature in database
GPG key ID: D78C4471CE776659

View file

@ -256,18 +256,9 @@ func (c *Client) DeleteInteractionResponse(appID discord.AppID, token string) er
}
// CreateInteractionFollowup creates a followup message for an interaction.
//
// Deprecated: use FollowUpInteraction instead.
func (c *Client) CreateInteractionFollowup(
appID discord.AppID, token string, data InteractionResponseData) (*discord.Message, error) {
return c.FollowUpInteraction(appID, token, data)
}
// FollowUpInteraction creates a followup message for an interaction.
func (c *Client) FollowUpInteraction(
appID discord.AppID, token string, data InteractionResponseData) (*discord.Message, error) {
if (data.Content == nil || data.Content.Val == "") &&
(data.Embeds == nil || len(*data.Embeds) == 0) && len(data.Files) == 0 {
return nil, ErrEmptyMessage