Table of Contents

Class VoiceLinkErrorHandler

Namespace
DSharpPlus.VoiceLink
Assembly
DSharpPlus.VoiceLink.dll
public class VoiceLinkErrorHandler : IClientErrorHandler
Inheritance
VoiceLinkErrorHandler
Implements
IClientErrorHandler
Inherited Members

Fields

public static readonly VoiceLinkErrorHandler Instance

Field Value

VoiceLinkErrorHandler

Methods

Handles an error that occurred in an event handler.

public ValueTask HandleEventHandlerError(string name, Exception exception, Delegate invokedDelegate, object sender, object args)

Parameters

name string

The name of the event.

exception Exception

The exception thrown.

invokedDelegate Delegate

The delegate that was invoked.

sender object

The object that dispatched this event.

args object

The arguments passed to this event.

Returns

ValueTask

Handles a gateway error of any kind.

public ValueTask HandleGatewayError(Exception exception)

Parameters

exception Exception

The exception that occurred.

Returns

ValueTask