Class VoiceLinkErrorHandler
- Namespace
- DSharpPlus.VoiceLink
- Assembly
- DSharpPlus.VoiceLink.dll
public class VoiceLinkErrorHandler : IClientErrorHandler
- Inheritance
-
VoiceLinkErrorHandler
- Implements
-
IClientErrorHandler
- Inherited Members
Fields
Instance
public static readonly VoiceLinkErrorHandler Instance
Field Value
Methods
HandleEventHandlerError(string, Exception, Delegate, object, object)
Handles an error that occurred in an event handler.
public ValueTask HandleEventHandlerError(string name, Exception exception, Delegate invokedDelegate, object sender, object args)
Parameters
name
stringThe name of the event.
exception
ExceptionThe exception thrown.
invokedDelegate
DelegateThe delegate that was invoked.
sender
objectThe object that dispatched this event.
args
objectThe arguments passed to this event.
Returns
HandleGatewayError(Exception)
Handles a gateway error of any kind.
public ValueTask HandleGatewayError(Exception exception)
Parameters
exception
ExceptionThe exception that occurred.