!30 将`e.bot`更改为不可枚举属性

Merge pull request !30 from 椰羊/N/A
This commit is contained in:
Yoimiya 2023-04-25 20:47:37 +00:00 committed by Gitee
commit 0494217518
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,9 @@ class PluginsLoader {
* @param e icqq Events
*/
async deal (e) {
e.bot = Bot
Object.defineProperty(e, 'bot', {
value: Bot
})
/** 检查频道消息 */
if (this.checkGuildMsg(e)) return
/** 检查黑白名单 */