question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EmbedMessage.addReaction not possible?

See original GitHub issue

General Troubleshooting

  • I have checked for similar issues.
  • I have updated to the latest JDA version.
  • I have checked the branches or the maintainers’ PRs for upcoming features/bug fixes.

Issue

Issue Type

  • Bug Report
  • Something in between (Not quite sure)
  • Feature Request

Description

Imma make it short;

I want add a Reaction to my EmbedMessage. This kinda seems like not possible, while Message.addReaction for a Message Object exists, there’s no similair method for EmbedMessage.

Please correct me if I’m wrong, and there actually is a way to do this, sorry then.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
JohnnyJayJaycommented, Oct 24, 2018

You don’t create entities like that in JDA. You either get them from the library itself or use builders. Also, all of the Collections that JDA provides are immutable. In your example, you could send the MessageEmbed directly and then use the callback in queue to access the actual Message object. E.g.:

e.getTextChannel().sendMessage(EMBED.POLL(argsString, member)).queue((msg) -> {
   // here you can use the Message object
});

For questions like this you should join the official Discord server and ask there since the issues are the place for feature requests and bug reports.

1reaction
DV8FromTheWorldcommented, Oct 24, 2018

Also to note: You cannot add reactions to a message before it has been sent, so the way that @JohnnyJayJay has proposed for interacting is a valid way for doing that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

discord.py not reaction on embed message - Stack Overflow
So i'm trying to write a command that reacts when it sees a message with "Diona"
Read more >
API Reference - discord.py
Allows for finer control over how the library caches members. If not given, defaults to cache as much as possible with the currently...
Read more >
Channel - Discord Developer Portal — Documentation
Embed Limits. To facilitate showing rich content, rich embeds do not follow the traditional limits of message content. However, some limits are still...
Read more >
Reactions - discord.js Guide
To react with an emoji, you need to use the message.react() method. ... This route may not always be available to you, though....
Read more >
reaction role cog for discord.py - gists · GitHub
self.add_reaction(ctx.guild.id, emote, role.id, channel.id, msg.id) ... embed.description = "There are no reaction roles set up right now.".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found