Error when using "/me" in /channel/send API endpoint

Hello, it seems a change was made where we can no longer use “/me” in the start of https://api.nightbot.tv/1/channel/send endpoint messages. This was working for a long time up until last week and suddenly some of my messages stopped appearing. I made the connection today that it was all the messages that started with “/me”.

Is this intentional? If not, it’s giving me 500 Internal Server Errors. My test string is “/me Testing 1 2 3”, and I’m not too great at escapes but any combination of / \/ \/ or the like did not work, nor URL encoding, either showing in chat with extra / or still returning 500 errors.

Code example:

var messageToSend = "/me Testing 1 2 3";

var headers = {
	'Authorization': 'Bearer ' + accessToken
}
var options2 = {
	url: 'https://api.nightbot.tv/1/channel/send',
	method: 'POST',
	headers: headers,
	form: { message: messageToSend }
};
	
request(options2, callback);

Example image of manual curl https://cdn.discordapp.com/attachments/348267251943735296/474689223434305546/nightbot_message.png

Hope there is a solution or work-around, thanks!

1 Like

I think I broke this accidentally. It should be fixed now. Sorry about that!

Yep its working again, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.