(guild, type)
| 65 | } |
| 66 | |
| 67 | export async function getCounterCount(guild, type) { |
| 68 | const stats = await getGuildCounterStats(guild); |
| 69 | |
| 70 | switch (type) { |
| 71 | case 'members': |
| 72 | return stats.totalCount; |
| 73 | case 'bots': |
| 74 | return stats.botCount; |
| 75 | case 'members_only': |
| 76 | return stats.humanCount; |
| 77 | default: |
| 78 | return null; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | function isValidCounterShape(counter) { |
| 83 | return Boolean( |
no test coverage detected