Seems like an oversight. PermissionOverwrite._type's type is an integer not a string, in the PermissionOverwrite.type getter this integer value is resolved into a string of either member/role. For this comparison here seems like it was intended to be .type.
Seems like an oversight.
PermissionOverwrite._type
's type is an integer not a string, in thePermissionOverwrite.type
getter this integer value is resolved into a string of eithermember
/role
. For this comparison here seems like it was intended to be.type
.