Answer the question
In order to leave comments, you need to log in
How to get and use response to vk.api request?
For example, I want to get the user id by command ( https://vk.com/dev/utils.resolveScreenName):
cmd.hear(/^(?:id)\s([^]+)$/i, async (message, bot) => {
vk.api.utils.resolveScreenName({ screen_name: message.args[2] });
});
But how to use the response from the server, and where to find it?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question