mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
Update permissions.ts
This commit is contained in:
@@ -81,7 +81,7 @@ export async function calculateChannelOverwrites(
|
||||
|
||||
// First calculate @everyone overwrites since these have the lowest priority
|
||||
const overwriteEveryone = channel.permissionOverwrites.find(
|
||||
(overwrite) => overwrite.id === (channel as DiscordenoChannel).guildId,
|
||||
(overwrite) => overwrite.id === channel.guildId,
|
||||
);
|
||||
if (overwriteEveryone) {
|
||||
// First remove denied permissions since denied < allowed
|
||||
|
||||
Reference in New Issue
Block a user