public Task DM_User_Types(SocketUser user, ISocketPrivateChannel channel) { foreach (IDMUserTypesEventHandler handler in this.DMUserTypesEventHandler) { new Thread(() => handler.DM_User_Types(user, channel)).Start(); } return(Task.CompletedTask); }
/// <summary> /// Converts an existing <see cref="ISocketPrivateChannel"/> to an abstracted <see cref="IISocketPrivateChannel"/> value. /// </summary> /// <param name="iSocketPrivateChannel">The existing <see cref="ISocketPrivateChannel"/> to be abstracted.</param> /// <exception cref="ArgumentNullException">Throws for <paramref name="iSocketPrivateChannel"/>.</exception> /// <returns>An <see cref="IISocketPrivateChannel"/> that abstracts <paramref name="iSocketPrivateChannel"/>.</returns> public static IISocketPrivateChannel Abstract(this ISocketPrivateChannel iSocketPrivateChannel) => iSocketPrivateChannel switch { null => throw new ArgumentNullException(nameof(iSocketPrivateChannel)),