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
namestringThe name of the event.
exceptionExceptionThe exception thrown.
invokedDelegateDelegateThe delegate that was invoked.
senderobjectThe object that dispatched this event.
argsobjectThe arguments passed to this event.
Returns
HandleGatewayError(Exception)
Handles a gateway error of any kind.
public ValueTask HandleGatewayError(Exception exception)
Parameters
exceptionExceptionThe exception that occurred.