discord.io icon indicating copy to clipboard operation
discord.io copied to clipboard

Edit embed message

Open LionLionLion opened this issue 6 years ago • 4 comments

The editMessage function take 3 parameters: channelID, messageID and message. No mention of embed. https://izy521.gitbooks.io/discord-io/content/Methods/Channels.html

Is it possible to add the feature to edit a embed message (or update the documentation if it is already there) ?

LionLionLion avatar Jan 22 '19 16:01 LionLionLion

yes, its perfectly fine to use embed: instead of message: in there and it should work just fine. docs aren't updated because d.io itself is in a "frozen" state with no updates.

Peacerekam avatar Jan 22 '19 18:01 Peacerekam

Thank you a lot ! It works fine as you said :)

LionLionLion avatar Jan 24 '19 18:01 LionLionLion

Is it possible to get message attachments from the on.('message') ? doesn't seem to be part of the 'message' object that comes in, but it certainly is part of the discord API

b1lly avatar Mar 21 '19 06:03 b1lly

You are not really in the correct discussion for that, but yeah you can. Check the evt.d.attachments property.

LionLionLion avatar Mar 21 '19 13:03 LionLionLion