@satorijs/core
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -233,5 +233,5 @@ /// <reference types="ws" /> | ||
} | ||
type EventCallback<T = void> = (this: Session, session: Session) => T; | ||
type EventCallback<T = void, R extends any[] = []> = (this: Session, session: Session, ...args: R) => T; | ||
export interface Events<C extends Context = Context> extends cordis.Events<C>, Record<keyof Satori.Events, EventCallback> { | ||
'before-send': EventCallback<Awaitable<void | boolean>>; | ||
'before-send': EventCallback<Awaitable<void | boolean>, [SendOptions]>; | ||
'bot-added'(client: Bot): void; | ||
@@ -238,0 +238,0 @@ 'bot-removed'(client: Bot): void; |
{ | ||
"name": "@satorijs/core", | ||
"description": "Core components of Satorijs", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"main": "lib/index.cjs", | ||
@@ -37,10 +37,10 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@satorijs/element": "^2.1.7", | ||
"@satorijs/element": "^2.1.8", | ||
"cordis": "^2.6.0", | ||
"cordis-axios": "^2.1.5", | ||
"cosmokit": "^1.3.3", | ||
"cosmokit": "^1.3.4", | ||
"ws": "^8.11.0", | ||
"reggol": "^1.3.2", | ||
"schemastery": "^3.5.4" | ||
"schemastery": "^3.6.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
94941
Updated@satorijs/element@^2.1.8
Updatedcosmokit@^1.3.4
Updatedschemastery@^3.6.1