Are those checks enough to avoid a "missing permission" error?

I'm making a command that sets up a mute role, and it seems like I incurred in errors in a few channels. Are those checks enough to ensure that the bot filters only channel where it can edit permission overwrites?

const channels = interaction.guild.channels.cache.filter(c=>c.viewable
                    && c.permissionsFor(interaction.guild.members.me).has(PermissionFlagsBits.ManageRoles)
            )
Was this page helpful?