API: remove the pointer of Embed to concur with SendMessage

This commit is contained in:
mavolin 2020-05-15 19:19:13 +02:00
parent 11cf1eb769
commit 52a7582dab
No known key found for this signature in database
GPG Key ID: D8681218EDF216DF
1 changed files with 2 additions and 2 deletions

View File

@ -186,11 +186,11 @@ func (c *Client) EditEmbed(
// EditMessageComplex. // EditMessageComplex.
func (c *Client) EditMessage( func (c *Client) EditMessage(
channelID, messageID discord.Snowflake, content string, channelID, messageID discord.Snowflake, content string,
embed *discord.Embed, suppressEmbeds bool) (*discord.Message, error) { embed discord.Embed, suppressEmbeds bool) (*discord.Message, error) {
var data = EditMessageData{ var data = EditMessageData{
Content: option.NewNullableString(content), Content: option.NewNullableString(content),
Embed: embed, Embed: &embed,
} }
if suppressEmbeds { if suppressEmbeds {
data.Flags = &discord.SuppressEmbeds data.Flags = &discord.SuppressEmbeds