aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa #7

Merged
Guzio merged 3 commits from cadence/out-of-your-element:main into main 2026-03-02 12:59:21 +00:00
Showing only changes of commit 780154fd09 - Show all commits

View file

@ -115,7 +115,7 @@ function getChannelRoomsLinks(guild, rooms, roles) {
let removedWrongTypeChannels = dUtils.filterTo(unlinkedChannels, c => c && [0, 5].includes(c.type))
let removedPrivateChannels = dUtils.filterTo(unlinkedChannels, c => {
const permissions = dUtils.getPermissions(guild.id, roles, guild.roles, botID, c["permission_overwrites"])
return dUtils.hasPermission(permissions, DiscordTypes.PermissionFlagsBits.ViewChannel)
return dUtils.hasSomePermissions(permissions, ["Administrator", "ViewChannel"])
})
unlinkedChannels.sort((a, b) => getPosition(a, discord.channels) - getPosition(b, discord.channels))