mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-10-02 07:18:49 +00:00
api: Revert "Revert 'Add FollowUpInteraction'"
This reverts commit 96b8e2b8e5
.
The commit that is being reverted was created on the wrong commit.
This commit is contained in:
parent
015b1cdf6f
commit
a1334c45f4
|
@ -256,9 +256,18 @@ func (c *Client) DeleteInteractionResponse(appID discord.AppID, token string) er
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateInteractionFollowup creates a followup message for an interaction.
|
// CreateInteractionFollowup creates a followup message for an interaction.
|
||||||
|
//
|
||||||
|
// Deprecated: use FollowUpInteraction instead.
|
||||||
func (c *Client) CreateInteractionFollowup(
|
func (c *Client) CreateInteractionFollowup(
|
||||||
appID discord.AppID, token string, data InteractionResponseData) (*discord.Message, error) {
|
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 == "") &&
|
if (data.Content == nil || data.Content.Val == "") &&
|
||||||
(data.Embeds == nil || len(*data.Embeds) == 0) && len(data.Files) == 0 {
|
(data.Embeds == nil || len(*data.Embeds) == 0) && len(data.Files) == 0 {
|
||||||
return nil, ErrEmptyMessage
|
return nil, ErrEmptyMessage
|
||||||
|
|
Loading…
Reference in a new issue