mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-28 17:53:30 +00:00
API: remove the pointer of Embed to concur with SendMessage
This commit is contained in:
parent
11cf1eb769
commit
52a7582dab
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue