koishi-core
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -28,4 +28,2 @@ "use strict"; | ||
const app = new App(options); | ||
exports.apps[options.selfId] = app; | ||
exports.selfIds.push(options.selfId); | ||
return app; | ||
@@ -244,2 +242,4 @@ } | ||
_registerSelfId() { | ||
exports.apps[this.options.selfId] = this; | ||
exports.selfIds.push(this.options.selfId); | ||
const atMeRE = `\\[CQ:at,qq=${this.options.selfId}\\]`; | ||
@@ -246,0 +246,0 @@ if (this.app.options.name) { |
@@ -69,2 +69,3 @@ import { GroupData, User } from './database'; | ||
} | ||
export declare type GroupRole = 'owner' | 'admin' | 'member'; | ||
export interface SenderInfo extends StrangerInfo { | ||
@@ -74,3 +75,3 @@ area?: string; | ||
level?: string; | ||
role?: 'owner' | 'admin' | 'member'; | ||
role?: GroupRole; | ||
title?: string; | ||
@@ -77,0 +78,0 @@ } |
{ | ||
"name": "koishi-core", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"main": "dist/index.js", | ||
@@ -53,6 +53,6 @@ "typings": "dist/index.d.ts", | ||
"fs-extra": "^8.1.0", | ||
"koishi-utils": "^0.1.4", | ||
"koishi-utils": "^0.1.6", | ||
"leven": "^3.1.0", | ||
"ws": "^7.2.0" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
248945
2595
Updatedkoishi-utils@^0.1.6