Closed logican710 closed 2 years ago
it should be
remessage.applyChanges(outOfDateMessage);
RevisionsJSON is not a json string, so it'll abort since the types don't match up.
I believe what you want is the internal function SleepyDiscord::json::stringify
Thank you for your kind answer.
void onEditMessage(SleepyDiscord::MessageRevisions remessage)override { std::string a = remessage.RevisionsJSON.GetString(); sendMessage(remessage.channelID, a);
thanks