HelpChat / ChatChat

ChatChat - Coming Soon
MIT License
51 stars 33 forks source link

Stop using user instanceof ChatUser. #145

Open BlitzOffline opened 2 years ago

BlitzOffline commented 2 years ago

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.