𝙼
addMonopolyAccess(chatId, userId) {
registerPluginMonopolyAccess(this.pluginName, chatId, userId);
}
delMonopolyAccess(chatId, userId) {
unregisterPluginMonopolyAccess(this.pluginName, chatId, userId);
}
Эти функции импортируются из другого файла:
let {registerPluginMonopolyAccess, unregisterPluginMonopolyAccess} = require('./plugin_tools');
Там они объявлены и экспортируются через module.exports, но я получаю
archlinux_ru_bot_1 | archcaptcha: TypeError: registerPluginMonopolyAccess is not a function
archlinux_ru_bot_1 | archcaptcha: TypeError: unregisterPluginMonopolyAccess is not a function
Так почему при вызове метода, он не может найти функции?