当前出现错误,其中@是意外令牌。
说实话,我不是100%地确定如何解决这个问题。我曾尝试删除@,但后来发现了它的params部分,我需要它。我也尝试安装npm install params,但后来发现这完全不相关,也许我需要休息一下,但是此错误现在对我来说没有任何意义。
错误:
dic1.get(k,[])
BustabitClient.JS:
dic1.get(k) or []
答案 0 :(得分:0)
我想您的代码中有错字。 @param
应该在注释中以记录API:
/**
* Attempt to mute a user and return whether he actually was. Users are not muted if they are on
* the USER_WHITELIST in Config.js.
*
* @param {string} uname
* @param {string} [reason]
* @param {string} [channel] chat channel to which the broadcast the mute
* @param {number} [wagerRequirement] required wager volume before user can chat again, otherwise allowing the server to choose
* @returns {Promise<boolean>} true if the user was muted
*/