#How to send a message and then update it

1 messages · Page 1 of 1 (latest)

bronze ether
#

I want to make an embed message thats basically a loading sign thingie, then my bot makes an API call and replaces the message with the target embed, but I cant seem to cast my message into a SocketMessage using "var origin = await message.Channel.sendMessageAsync('', false, myEmbed.Build());", trying to access origin as a socketmessage will result in an error saying i cant cast a Task to SocketMessage

rotund shard
#
  1. When you create a message, you get back a rest object. Rest object can't be cast to Socket objects
  2. Just use the interface IUserMessage and call modify on that
bronze ether
#

how would i do that

#

figured it out