(chatId: string, enabled: boolean)
| 239 | } |
| 240 | |
| 241 | // 检查是否为白名单 |
| 242 | private isWhite(chatId: string): boolean { |
| 243 | return this.db.data.whitelist.includes(chatId); |
| 244 | } |
| 245 | |
| 246 | // 检查是否为黑名单 |
| 247 | private isBlack(chatId: string): boolean { |
| 248 | return this.db.data.blacklist.includes(chatId); |
no test coverage detected