mirror of
https://github.com/sern-handler/handler
synced 2026-06-27 18:22:14 +00:00
test: add tests
This commit is contained in:
@@ -12,6 +12,7 @@ import { Processed } from '../types';
|
||||
import { BothCommand, CommandModule, Module } from '../../core/types/modules';
|
||||
import { Args } from '../../shared';
|
||||
|
||||
|
||||
export function dispatchInteraction<T extends CommandModule, V extends BaseInteraction | Message>(
|
||||
payload: { module: Processed<T>; event: V },
|
||||
createArgs: (m: typeof payload.event) => unknown[],
|
||||
|
||||
@@ -4,9 +4,8 @@ import { startReadyEvent } from './events/ready';
|
||||
import { makeMessageHandler } from './events/messages';
|
||||
import { err, ok } from '../core/functions';
|
||||
import { getFullPathTree } from '../core/module-loading';
|
||||
import { catchError, finalize, merge } from 'rxjs';
|
||||
import { handleError } from '../core/operators';
|
||||
import { Services, useContainerRaw } from '../core/ioc';
|
||||
import { merge } from 'rxjs';
|
||||
import { Services } from '../core/ioc';
|
||||
import { Wrapper } from '../shared';
|
||||
import { handleCrash } from './events/generic';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user