From d1588a60fd5f38afab7afc2352acb729a5d061b4 Mon Sep 17 00:00:00 2001 From: SocketSomeone Date: Mon, 6 Jun 2022 20:27:07 +0200 Subject: [PATCH] test: remove discovery from text command --- test/text-commands.spec.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/text-commands.spec.ts b/test/text-commands.spec.ts index 3c1be2d5..8693aeb9 100644 --- a/test/text-commands.spec.ts +++ b/test/text-commands.spec.ts @@ -1,5 +1,5 @@ import { Injectable } from '@nestjs/common'; -import { Arguments, ContextOf, Ctx, Discovery, TextCommand, TextCommandDiscovery } from '../src'; +import { Arguments, ContextOf, Ctx, TextCommand } from '../src'; import { createApplication } from './utils.spec'; @Injectable() @@ -10,12 +10,7 @@ class TextCommandsSpec { } @TextCommand({ name: 'length', description: 'length of message' }) - public onLength( - @Ctx() [message]: ContextOf<'messageCreate'>, - @Arguments() args: string[], - @Discovery() discovery: TextCommandDiscovery - ) { - console.log(discovery, discovery.isTextCommand()); + public onLength(@Ctx() [message]: ContextOf<'messageCreate'>, @Arguments() args: string[]) { return message.reply('Your message length - ' + args.join(' ').length); } }