sleepy-discord icon indicating copy to clipboard operation
sleepy-discord copied to clipboard

sendMessage with line break or tab causes SIGABRT

Open CallumCVM opened this issue 5 years ago • 1 comments

As the title says, calling sendMessage with a line break or a tab (\n or \t), throws a SIGABRT inside BaseDiscordClient::request. onError reports this as a BAD_REQUEST 400, but as far as I know Discord should be able to handle line breaks in their API.

CallumCVM avatar Feb 22 '19 11:02 CallumCVM

The develop branch solves this by handling the c++ to json string conversation. For now, before I pull develop, use \\n.

yourWaifu avatar Feb 22 '19 14:02 yourWaifu