(msg: Api.Message, text: string)
| 475 | bannedUsers.forEach((entity: any) => { |
| 476 | if (entity.type === 'user') entityStats.users++; |
| 477 | else if (entity.type === 'channel') entityStats.channels++; |
| 478 | else if (entity.type === 'chat') entityStats.chats++; |
| 479 | }); |
| 480 | |
| 481 | let successCount = 0, failedCount = 0; |
| 482 | const failedEntities: string[] = []; |
| 483 | |
| 484 | for (const entity of bannedUsers) { |
| 485 | const success = await unbanUser(client, chatEntity, entity.id); |
| 486 | if (success) { |
no test coverage detected