"Cannot send an empty message" when sending an image
I am running a bot that tries to display a dynamically rendered image (an XP rank card showing the user's XP amount and rank). This image is loaded from an external server. However, the command often fails with "Cannot send an empty message", even though the message is not empty.
The thing is, the message is not empty, and in the error message I get, I even see the file data (see attached image; the numbers at the top are the tail end of a massive array of numbers). If I copy the array and just do