Skip to content

Interactions fail to check if DMs are with another user before updating cache #11429

@LJNeon

Description

@LJNeon

Which package is this bug report for?

discord.js

Issue description

  1. User A installs Bot to their account.
  2. User A runs /command from Bot in their DMs with User B.
  3. Bot tries to send a message to User A's DMs (via user.send()).
  4. Fails! 50001 Missing Access error because Bot tried to send message to User B's DMs with User A instead of Bot's DMs with User A.

The bot sends reminders and has been struggling with seemingly spontaneous 50001 Missing Access errors for a while now which is causing reminders to have massive delays from the intended reminder date.

Discord thread: https://discord.com/channels/222078108977594368/1474848599857954969

Code sample

Versions

  • discord.js 14.25.1
  • Node.js 24.14.0

Issue priority

Medium (should be fixed soon)

Which partials do you have configured?

All partials enabled

Which gateway intents are you subscribing to?

No Intents

I have tested this issue on a development release

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions