Skip to content

Add fail-fast case for bots DMing each other

Mateusz Brawański requested to merge github/fork/uwx/patch-63 into master

Created by: uwx

Summary

Adds a fail-fast case for SendMessageAsync on a bot's DiscordMember

Details

Currently, a bot DMing another bot will result in a difficult to debug 403 error. This PR adds a fail fast case with a pretty message in case that happens.

Changes proposed

  • Throw ArgumentException if a bot client DMs a bot member

Merge request reports

Loading