message.guild.channels.cache.forEach(ch => { if(ch.type == "text") ch.overwritePermissions([ { id: muteRole.id, deny: ['SEND_MESSAGES'], }, ], 'Needed to change permissions'); })