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
valueTValue to populate the optional with.
Returns
- Optional<T>
 Created optional.
Type Parameters
TType of the value.