From 68489c733d4ab4b4f52829ecf54fcea80fd735ff Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Fri, 1 Oct 2021 21:00:44 +0300 Subject: [PATCH] implement new sendTo method --- package.json | 2 +- src/types/protocol.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3e74133..d72a663 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@squeebot/core", - "version": "3.3.3", + "version": "3.3.4", "description": "Squeebot v3 core for the execution environment", "main": "lib/index.js", "module": "lib/", diff --git a/src/types/protocol.ts b/src/types/protocol.ts index 037f1e9..2dffc9a 100644 --- a/src/types/protocol.ts +++ b/src/types/protocol.ts @@ -61,7 +61,14 @@ export class Protocol extends EventEmitter { this.emit('stopped'); } - public resolve(message: IMessage, ...data: any[]): void {} + public resolve(message: IMessage, ...data: any[]): void { + throw new Error('Method not implemented.'); + } + + public async sendTo(target: string, ...data: any[]): Promise { + throw new Error('Method not implemented.'); + } + public get fullName(): string { return this.plugin.manifest.name + '/' + this.name; }