canBan property

bool get canBan

The level required to ban a user.

Implementation

bool get canBan =>
    (getState(EventTypes.RoomPowerLevels)?.content.tryGet<int>('ban') ??
        50) <=
    ownPowerLevel;