Added IWebhookUser and MessageSource
This commit is contained in:
@@ -51,5 +51,9 @@ namespace Discord
|
||||
{
|
||||
public static Optional<T> Create<T>() => Optional<T>.Unspecified;
|
||||
public static Optional<T> Create<T>(T value) => new Optional<T>(value);
|
||||
|
||||
public static T? ToNullable<T>(this Optional<T> val)
|
||||
where T : struct
|
||||
=> val.IsSpecified ? val.Value : (T?)null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user