test: add tests

This commit is contained in:
Jacob Nguyen
2023-05-19 02:08:08 -05:00
parent b6ef27df88
commit 5d842fd5e7
6 changed files with 885 additions and 10 deletions

View File

@@ -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[],

View File

@@ -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';