diff --git a/CHANGELOG.md b/CHANGELOG.md index e2c9c0450967..88ad9ba31eac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ * Added `MessageBehavior#publish` to publish a message in an announcement channel. * Added `NewsChannelBehavior#follow` to follow an announcement channel in another text channel. +## Fixes + +* Fixed `GuildChannel#getEffectivePermissions` not correctly denying permissions denied for the user specifically. + # 0.5.4 ## Additions diff --git a/core/src/main/kotlin/com/gitlab/kordlib/core/entity/channel/GuildChannel.kt b/core/src/main/kotlin/com/gitlab/kordlib/core/entity/channel/GuildChannel.kt index 6018835081b7..d06cfb160629 100644 --- a/core/src/main/kotlin/com/gitlab/kordlib/core/entity/channel/GuildChannel.kt +++ b/core/src/main/kotlin/com/gitlab/kordlib/core/entity/channel/GuildChannel.kt @@ -70,7 +70,7 @@ interface GuildChannel : Channel, GuildChannelBehavior { } memberOverwrite?.let { +it.allowed - +it.denied + -it.denied } }