Table of Contents

Method HandleEventHandlerError

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

HandleEventHandlerError(string, Exception, Delegate, object, object)

Handles an error that occurred in an event handler.

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