mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
Merge branch 'node-migration-clean' of https://github.com/discordeno/discordeno into node-migration-clean
This commit is contained in:
@@ -84,7 +84,7 @@ export class GuildChannel extends Channel {
|
||||
if (permission & BigInt(BitwisePermissionFlags.ADMINISTRATOR)) {
|
||||
return new Permission(BitwisePermissionFlags.ADMINISTRATOR)
|
||||
}
|
||||
const channel = this instanceof ThreadChannel ? this.guild.channels.get(this.parentID!) : this
|
||||
const channel = this instanceof ThreadChannel ? this.guild.channels.get(this.parentID) : this
|
||||
let overwrite = channel?.permissionOverwrites.get(this.guild.id)
|
||||
if (overwrite) {
|
||||
permission = (permission & ~overwrite.deny) | overwrite.allow
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user