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

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

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