Skip to content

Race between member removal and message events leads to missed messages or updates #3102

@Player3324

Description

@Player3324

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • I have checked for PRs that might already address this issue.

Version of JDA

6.4.1

Expected Behaviour

Discord may sporadically send gateway events such as MESSAGE_CREATE after GUILD_MEMBER_REMOVE and omit the member field. I currently see this problem almost every day on a larger server where spam bots quickly cross post scam messages and my bot bans the accounts while they are spamming.

JDA shouldn't ignore these message but post MessageReceivedEvent etc as usual. Otherwise the message leads to nothing but a debug level (EventCache) Received a message for a user that JDA does not currently have cached log entry which is invisible by default.

Code Example for Reproduction Steps

N/A

Code for JDABuilder or DefaultShardManagerBuilder used

see https://github.com/FabricMC/discord-bot/blob/master/ioimpl/jda/src/main/java/net/fabricmc/discord/ioimpl/jda/DiscordProviderImpl.java#L89

Exception or Error

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions