Skip to content

bug: ServerMember.hasPermission() returns true with any input #138

@nogegg

Description

@nogegg

What happened?

I'm trying to build some checks so that commands will only work if a member has a permission, but whenever I check, no matter what I give it (even an empty string), message.member.hasPermission() returns true

Examples:

Image

The test account I'm using to run these commands does not have the ban users permission.

Pulling the member object using the user ID (ie. message.server.getMember(message.author.id).hasPermission("")) also returns true with any input

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions