implement new sendTo method

This commit is contained in:
Evert Prants 2021-10-01 21:00:44 +03:00
parent 2640d348f6
commit 68489c733d
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 9 additions and 2 deletions

View File

@ -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/",

View File

@ -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<boolean> {
throw new Error('Method not implemented.');
}
public get fullName(): string {
return this.plugin.manifest.name + '/' + this.name;
}