Skip to content

Commit

Permalink
fix(qq): sync status with parent, fix #190
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Nov 25, 2023
1 parent 1edc0d6 commit f1661e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/qq/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@satorijs/adapter-qq",
"description": "QQ Adapter for Satorijs",
"version": "4.1.12",
"version": "4.1.14",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down
8 changes: 8 additions & 0 deletions adapters/qq/src/bot/guild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ export class QQGuildBot<C extends Context = Context> extends Bot<C> {
this.http = config.parent.guildHttp
}

get status() {
return this.parent.status
}

set status(status) {
this.parent.status = status
}

async getUser(userId: string, guildId?: string): Promise<Universal.User> {
const { user } = await this.getGuildMember(guildId, userId)
return user
Expand Down

0 comments on commit f1661e8

Please sign in to comment.