Answer the question
In order to leave comments, you need to log in
How to fix Cannot read property 'message' of undefined error?
vk.updates.hear(/^(?:\/badge)\s([^]+)?/i, async (message) => {
badge[message.$match[2]].message.$match[1] = message.$match[3]
return message.send(`Значение для значка message.$match[1] для [id${message.$match[2]}|Пользователя] установлено на ${message.$match[3]}`);
});
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