Closed TylerTheFox closed 6 years ago
issues isn't for asking questions, but I'll answer them anyway. It simplifies the library code on my end.
What? It's not really a question. The documentation is wrong as void onReady(SleepyDiscord::Ready data) is no longer the correct way to use onReady. The correct method of using onReady now is void onReady (std::string* jsonMessage); as void onReady (Ready readyData ); will NEVER be called.
It IS an issue.
virtual void onReady (std::string* jsonMessage);
is the old version and it's not in develop
virtual void onReady (Ready readyData );
is the new version that's in devlop that's about to be merged soon.
https://github.com/yourWaifu/sleepy-discord/blob/develop/include/sleepy_discord/client.h#L248
I'm aware that master is still using the old version because it's a breaking change, that's why it's in develop and not master. I have a list of changes that would break other's code that I plan on placing in the docs.
I saw the old message before you edited it clarifying its NOT in develop. I saw commits in master and thought you pushed over all the changes from develop. My mistake but it is confusing the documentation addresses stuff in the develop branch and not the current release branch (master).
Why is onReady now
and not
as the prototype is listed here in the documentation
https://yourwaifu.github.io/sleepy-discord/documentation.html#addreaction