Package-level declarations
Types
Represents a value that encapsulates all three possible states of a value in the Discord API. Specifically:
Represents a value that encapsulate the optional and value state of a Boolean in the Discord API. Specifically:
Represents a value that encapsulate the optional and value state of an Int in the Discord API. Specifically:
Represents a value that encapsulate the optional and value state of an Int in the Discord API. Specifically:
Represents a value that encapsulate the optional and value state of a Long in the Discord API. Specifically:
Represents a value that encapsulate a Snowflake's optional and value state in the Discord API.
Properties
returns null if this is null, calls OptionalBoolean.asNullable otherwise.
returns null if this is null, calls OptionalDouble.asNullable otherwise.
returns null if this is null, calls OptionalInt.asNullable otherwise.
returns null if this is null, calls OptionalLong.asNullable otherwise.
returns null if this is null or OptionalBoolean.Missing, calls OptionalBoolean.Value.value otherwise.
returns null if this is null or OptionalDouble.Missing, calls OptionalDouble.Value.value otherwise.
returns null if this is null or OptionalInt.Missing, calls OptionalInt.Value.value otherwise.
returns null if this is null, calls OptionalLong.asNullable otherwise.
returns null if this is null or OptionalSnowflake.Missing, calls OptionalSnowflake.Value.value otherwise.
Functions
returns the value of the optional or throws a IllegalStateException if the optional doesn't contain a value or is null.
returns default if this is null, calls OptionalBoolean.asNullable otherwise.
returns default if this is null, calls OptionalDouble.asNullable otherwise.
returns default if this is null, calls OptionalInt.asNullable otherwise.
returns default if this is null, calls OptionalLong.asNullable otherwise.