CooldownType class Null safety

Represents different types of cooldown

Inheritance

Constructors

CooldownType(int value)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Returns value of enum
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited
operator |(CooldownType other) CooldownType
Combines two CooldownTypes.

Static Methods

applies(CooldownType instance, CooldownType check) bool
Returns true if all the types in instance are present in check.

Constants

category → const CooldownType
Cooldown is per category. [...]
CooldownType(1 << 0)
channel → const CooldownType
Cooldown is per channel. [...]
CooldownType(1 << 1)
command → const CooldownType
Cooldown is per command. [...]
CooldownType(1 << 2)
global → const CooldownType
Cooldown is global. [...]
CooldownType(1 << 3)
guild → const CooldownType
Cooldown is per guild. [...]
CooldownType(1 << 4)
role → const CooldownType
Cooldown is per role. [...]
CooldownType(1 << 5)
user → const CooldownType
Cooldown is per user. [...]
CooldownType(1 << 6)