removed unnecessary type annotation

This commit is contained in:
almeidx 2021-07-28 23:54:34 +01:00
parent ca30dd204e
commit d9d1793e59
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664

View file

@ -12,7 +12,7 @@ export const ClearBannedMutesCmd = mutesCmd({
const activeMutes = await pluginData.state.mutes.getActiveMutes();
const bans: Array<{ reason: string; user: User }> = (await pluginData.guild.bans.fetch({ cache: true })) as any;
const bans = await pluginData.guild.bans.fetch({ cache: true });
const bannedIds = bans.map(b => b.user.id);
await msg.channel.send(`Found ${activeMutes.length} mutes and ${bannedIds.length} bans, cross-referencing...`);