Method FromValue
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
FromValue<T>(T)
Creates a new Optional<T> with specified value and valid state.
public static Optional<T> FromValue<T>(T value)
Parameters
value
TValue to populate the optional with.
Returns
- Optional<T>
Created optional.
Type Parameters
T
Type of the value.