Please describe the problem you are having in as much detail as possible:
If the message being sent is not a "normal" character (ex: ( ͡° ͜ʖ ͡°)), a "cannot send an empty message" error happens.
Include a reproducible code sample here, if possible:
client.on('message', message => {
let test = "🅱"
message.channel.send(test);
//DiscordAPIError: Cannot send an empty message
});
client.on('message', message => {
let otherTest = "( ͡° ͜ʖ ͡°)"
message.channel.send(otherTest);
//DiscordAPIError: Cannot send and empty message
});
Further details:
Thanks for the bug report! We were scratching our heads in the staff channel trying to reproduce the bug, but you've figured it out for us.
The current fix is to downgrade to snekfetch 3.4.5 on master, so if you need your bot to be up, just run npm i [email protected] and you should be up and running again.
Hopefully we'll have a better fix for this later.
For those who use Yarn, try https://yarnpkg.com/en/docs/selective-version-resolutions:
"resolutions": {
"discord.js/snekfetch": "3.4.5"
}
or something like that..
The issue has been fixed with the latest snekfetch release.
Most helpful comment
The issue has been fixed with the latest snekfetch release.