1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-01 03:03:48 +00:00

API: re-add pointer to embed to preserve optionality

This commit is contained in:
mavolin 2020-05-15 19:40:00 +02:00
parent 52a7582dab
commit 7cb3520bc7
No known key found for this signature in database
GPG key ID: D8681218EDF216DF

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