Embed message doesn't update

后端 未结 2 2025
既然无缘
既然无缘 2021-01-06 10:50

I want to make a vote with an embed message.
When someone adds a reaction, I want to add a like and to show the number of likes in the embed. Here an example:

2条回答
  •  时光说笑
    2021-01-06 11:13

    Very late answer. But just in case someone finds this. Theres a much shorter way.

    And more useful if you have large embeds and don't want to rebuild your whole embed:

    message.embeds[0].fields[0] = "Some much like";
    message.edit(new Discord.RichEmbed(message.embeds[0]));
    

提交回复
热议问题