4. Watch as you get an Error 400 BadRequest instead of an Error 403 Forbidden.Removed: -### Environment (optional)Removed: -Removed: -_No response_Removed: -### Logs or screenshots (optional)[image](https://feedback.fluxer.com/p/370#f-368)Removed: -Removed: -### ChecksRemoved: -Removed: -- ☑ I searched for existing issues and didn't find a duplicate.
Show
API returns 400 instead of 403 when a bot DMs a user who blocked it
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
Create a bot.
Block your bot.
Make your bot send a DM to you.
Watch as you get an Error 400 BadRequest instead of an Error 403 Forbidden.
Removed: -API: 400 instead of 403Added: +API returns 400 instead of 403 when a bot DMs a user who blocked it### Summary
Show
API returns 400 instead of 403 when a bot DMs a user who blocked it
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
Create a bot.
Block your bot.
Make your bot send a DM to you.
Watch as you get an Error 400 BadRequest instead of an Error 403 Forbidden.
☑ I searched for existing issues and didn't find a duplicate.
Original by Rex
Show
API: 400 instead of 403
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
Create a bot.
Block your bot.
Make your bot send a DM to you.
Watch as you get an Error 400 BadRequest instead of an Error 403 Forbidden.