adamant-botfactory
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -159,3 +159,3 @@ import * as adamant_api from 'adamant-api'; | ||
*/ | ||
use(...handlers: (Layer | RouterHandler)[]): number; | ||
use(...handlers: (Layer | RouterHandler)[]): this; | ||
/** | ||
@@ -217,3 +217,3 @@ * Registers some middleware(s) that will only be executed when the message contains some text specified by `pattern` | ||
*/ | ||
static extends(bot: Bot): (passphrase: string, options: ApiOptions) => number; | ||
static extends(bot: Bot): (passphrase: string, options: ApiOptions) => Bot; | ||
get address(): `U${string}`; | ||
@@ -255,4 +255,4 @@ /** | ||
*/ | ||
declare function copyBot(bot: Bot): (passphrase: string, options: ApiOptions) => number; | ||
declare function copyBot(bot: Bot): (passphrase: string, options: ApiOptions) => Bot; | ||
export { Api, ApiOptions, Bot, BotFactoryError, DecodedMessageTransaction, ErrorHandler, Layer, MatchPattern, MatchType, Router, RouterHandler, User, UserData, copyBot, createBot }; |
@@ -83,3 +83,4 @@ // src/error.ts | ||
use(...handlers) { | ||
return this.stack.push(...handlers); | ||
this.stack.push(...handlers); | ||
return this; | ||
} | ||
@@ -86,0 +87,0 @@ /** |
{ | ||
"name": "adamant-botfactory", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "ADAMANT Bot Framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40208
1082