diff --git a/helpers/checkUnmutes.js b/helpers/checkUnmutes.js index 95efe4849b..3e4a0fd10f 100644 --- a/helpers/checkUnmutes.js +++ b/helpers/checkUnmutes.js @@ -15,7 +15,7 @@ module.exports = { }); }); setInterval(async () => { - client.databaseCache.mutedUsers.array().filter((m) => m.mute.endDate <= Date.now()).forEach(async (memberData) => { + Array.from(client.databaseCache.mutedUsers.keys()).filter((m) => m.mute.endDate <= Date.now()).forEach(async (memberData) => { const guild = client.guilds.cache.get(memberData.guildID); if(!guild) return; const member = guild.members.cache.get(memberData.id) || await guild.members.fetch(memberData.id).catch(() => {