izy521 / discord.io

A small, single-file library for creating DiscordApp clients from Node.js or the browser
https://discord.gg/0MvHMfHcTKVVmIGP
MIT License
535 stars 155 forks source link

Edit embed message #306

Open LionLionLion opened 5 years ago

LionLionLion commented 5 years ago

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) ?

Peacerekam commented 5 years ago

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.

LionLionLion commented 5 years ago

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

b1lly commented 5 years ago

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

LionLionLion commented 5 years ago

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