Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Grabbing a message off of a reaction causes burst_colour field missing #2930

Closed
Alacho2 opened this issue Aug 2, 2024 · 1 comment
Closed
Labels
duplicate An already existing issue.

Comments

@Alacho2
Copy link

Alacho2 commented Aug 2, 2024

For the record, I might be holding it wrong.

I have a bot that reacts to a Reaction coming in, checking for whether the user reacting is part of a role and then grabbing the author of the message off of the reaction.

This used to be done something like:

  let message = channel_id.message(&ctx.http, message_id).await?;
  let author = message.author.id;

Where the channel_id and message_id come from the reaction struct, respectfully.
However, when done this way, Serenity spits out: Error: Serenity error: missing field burst_colours at line 1 column 773.

These are my intents:

  let intents = GatewayIntents::default()
    | GatewayIntents::MESSAGE_CONTENT
    | GatewayIntents::GUILD_MEMBERS
    | GatewayIntents::GUILDS;

I also noticed that when I perform the same operation from an incoming message (not a reaction), it works fine.
I also know that I can use the message_author_id property.

@jamesbt365
Copy link
Member

Duplicate of #2922, #2910, #2909, #2892. Please check existing issues before opening one in the future.

@jamesbt365 jamesbt365 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
@jamesbt365 jamesbt365 added the duplicate An already existing issue. label Aug 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
duplicate An already existing issue.
Projects
None yet
Development

No branches or pull requests

2 participants