Skip to content

Stop using user instanceof ChatUser. #145

Description

@BlitzOffline

In many places we use unnecessary checks and casts. Instead we should just add new methods to User and just make ChatUser return its own stuff, and let people decide how their own user implementation should work.

A good example is the new User#hasPermission method I've added in #144.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementRequest for a new feature, or to change an existing one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions