Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.

Commit 10b761f

Browse files
committed
Merge branch 'master' into stable
2 parents 86aad39 + 1e96193 commit 10b761f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asc-rewrite",
3-
"version": "2.1.1",
3+
"version": "2.1.0",
44
"description": "The ASC bot",
55
"main": "index.js",
66
"scripts": {

util/WebsiteManager.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export default class WebsiteManager extends EventEmitter {
9191
result = error;
9292
}
9393
this.process!.send({
94-
_responseID: message._responseID,
95-
_result: result
94+
_data: { result },
95+
_responseID: message._responseID
9696
}, errorCB);
9797
} else if (action.type === 'GET_GUILD_MEMBERS') {
9898
const membersMap = (member: GuildMember | null) => {
@@ -127,14 +127,21 @@ export default class WebsiteManager extends EventEmitter {
127127
}
128128
}
129129
return this.process!.send({
130-
_members: members.map(membersMap),
130+
_data: {
131+
members: members.map(membersMap)
132+
},
131133
_responseID: message._responseID
132134
});
133135
} else if (action.query) {
134136
const members = await this.client.config.defaultGuild.members.fetch({
135137
query: action.query
136138
});
137-
return members.array().map(membersMap);
139+
return this.process!.send({
140+
_data: {
141+
members: members.array().map(membersMap)
142+
},
143+
_responseID: message._responseID
144+
});
138145
}
139146
}
140147
}

0 commit comments

Comments
 (0)