RecipleAnticrash
class
RecipleAnticrash
sourceexport class RecipleAnticrash extends BaseModule implements RecipleAnticrash.Options export class RecipleAnticrash extends BaseModule implements RecipleAnticrash.Optionsconstructor(options?: RecipleAnticrash.Options) constructor(options?: RecipleAnticrash.Options)| Param | Type | Required |
|---|---|---|
| | No |
onEnable(data: BaseModule.EventData<boolean>): Promise<void> onEnable(data: BaseModule.EventData<boolean>): Promise<void>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<void> Promise<void>onReady(data: BaseModule.EventData<true>): Promise<void> onReady(data: BaseModule.EventData<true>): Promise<void>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<void> Promise<void>onDisable(data: BaseModule.EventData<boolean>): Promise<void> onDisable(data: BaseModule.EventData<boolean>): Promise<void>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<void> Promise<void>report(reason: any): Promise<RecipleAnticrash.Report[]> report(reason: any): Promise<RecipleAnticrash.Report[]>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<RecipleAnticrash.Report[]> Promise<RecipleAnticrash.Report[]>createReportMessageOptions(reason: any, stack: string): Promise<DJSBaseMessageOptions> createReportMessageOptions(reason: any, stack: string): Promise<DJSBaseMessageOptions>| Param | Type | Required |
|---|---|---|
| | Yes |
| | Yes |
Returns:
Promise<DJSBaseMessageOptions> Promise<DJSBaseMessageOptions>.resolveChannel(...)
resolveChannel(resolvable: Exclude<RecipleAnticrash.Options["reportChannels"], undefined>[0]): Promise<SendableChannels|null> resolveChannel(resolvable: Exclude<RecipleAnticrash.Options["reportChannels"], undefined>[0]): Promise<SendableChannels|null>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<SendableChannels|null> Promise<SendableChannels|null>._captureErrorEvent(...)
_captureErrorEvent(...args: any[]): Promise<void> _captureErrorEvent(...args: any[]): Promise<void>| Param | Type | Required |
|---|---|---|
| | No |
Returns:
Promise<void> Promise<void>public source
.baseReportMessageOptions?
RecipleAnticrash.Options["baseReportMessageOptions"] RecipleAnticrash.Options["baseReportMessageOptions"]public source
.reportChannels
string[] string[]