API returns 400 instead of 403 when a bot DMs a user who blocked it

(#370) Bug Awaiting confirmation api dms

Summary

When I attempt to send a DM to a user who has DMs turned off (or blocked the bot), I get a 400 BadRequest error rather than the expected 403 Forbidden error.

Steps to reproduce

  1. Create a bot.
  2. Block your bot.
  3. Make your bot send a DM to you.
  4. Watch as you get an Error 400 BadRequest instead of an Error 403 Forbidden.

Logs or screenshots (optional)

image
  • 558307327-69383386-7e69-475a-bfb2-c5d02ae5bc77.png

    558307327-69383386-7e69-475a-bfb2-c5d02ae5bc77.png

    672×494 | 54 kB

2 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote
Status changed from Fixed to Awaiting confirmation
This was closed in a bulk cleanup before Fluxer V2 without being checked or fixed. It may work now, so it is waiting for someone to confirm whether the bug still happens.
Comment by @mads-fs
RexSystem 1 vote originally by @mads-fs on GitHub
I made changes in a fork of fluxer, but I can't make a pull request to this repo :/