Merge branch 'node-migration-clean' of https://github.com/discordeno/discordeno into node-migration-clean

This commit is contained in:
Skillz
2023-01-19 14:09:45 -06:00
2 changed files with 843 additions and 657 deletions

View File

@@ -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