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
1 changed files with 2 additions and 2 deletions

View File

@ -186,11 +186,11 @@ func (c *Client) EditEmbed(
// EditMessageComplex.
func (c *Client) EditMessage(
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{
Content: option.NewNullableString(content),
Embed: &embed,
Embed: embed,
}
if suppressEmbeds {
data.Flags = &discord.SuppressEmbeds