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:
parent
52a7582dab
commit
7cb3520bc7
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue