将`e.bot`更改为不可枚举属性
将`e.bot`更改为不可枚举属性,防止在控制台打印`e`的时候打印出一堆属性,更好的找到有用信息 Signed-off-by: 椰羊 <746659424@qq.com>
This commit is contained in:
parent
23b194c6a7
commit
2023faedb4
|
@ -158,7 +158,9 @@ class PluginsLoader {
|
||||||
* @param e icqq Events
|
* @param e icqq Events
|
||||||
*/
|
*/
|
||||||
async deal (e) {
|
async deal (e) {
|
||||||
e.bot = Bot
|
Object.defineProperty(e, 'bot', {
|
||||||
|
value: Bot
|
||||||
|
})
|
||||||
/** 检查频道消息 */
|
/** 检查频道消息 */
|
||||||
if (this.checkGuildMsg(e)) return
|
if (this.checkGuildMsg(e)) return
|
||||||
/** 检查黑白名单 */
|
/** 检查黑白名单 */
|
||||||
|
|
Loading…
Reference in New Issue