admin管理员组文章数量:1379384
i am currently developing a twitch bot and use the tmi.js module in node.js
const tmi = require('tmi.js');
Then i used the code from the documentation like this:
const client = new tmi.Client({
identity: {
username: 'twitch_user',
password: 'twitch_oauth'
},
channels: [ 'twitch_channel' ]
});
And finally a test like this:
client.on('message', (ch, tags, message, self) => {
if (self) return;
client.say(ch, 'This is a test');
});
It all works, but WebStorm gives me the following message:
Unresolved function or method on()
Unresolved function or method say()
The functions/methods definetly exist and are working. I think the problem here might be how these methods are created in tmi.js and they could be created dynamically.
So, is there a way to tell WebStorm that this exists or something like that?
Thanks!
本文标签: javascriptUnresolved function or method on() and say() in WebStorm with tmijsStack Overflow
版权声明:本文标题:javascript - Unresolved function or method on() and say() in WebStorm with tmi.js - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744430754a2605932.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论