diff --git a/src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java b/src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java index 44a738be00..5b3f2bb5d5 100644 --- a/src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java +++ b/src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java @@ -362,8 +362,9 @@ public static long getEffectivePermission(Channel channel, Member member) } else if (!isApplied(permission, Permission.VIEW_CHANNEL.getRawValue())) { - // When the permission to view the channel is not applied it is not granted - return permission & ~Permission.ALL_TEXT_PERMISSIONS; + //When the permission to view the channel is not applied it is not granted + // This means that we have no access to this channel at all + return 0; } final boolean isPerms = isApplied(permission, Permission.MANAGE_PERMISSIONS.getRawValue());