Answer the question
In order to leave comments, you need to log in
How to work with api / discord bot?
I started learning programming, namely C++, creating a bot for Discord (C++ / libcurl).
The essence of the problem is that I learned how to send a request, but what to do with the received json and how to parse it?
If it's not difficult, can you write a procedure for working with api (sending a request, etc.)?
Answer the question
In order to leave comments, you need to log in
The Discord API uses HTTP requests. Therefore, any library for such requests (for example, libcurl) will be required. And then smoke the official API documentation.
... But as already mentioned above, there is not much point in this. Learning from a task for which the language is ill-adapted is a rather strange idea.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question