This repository was archived by the owner on Aug 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " asc-rewrite" ,
3
- "version" : " 2.1.1 " ,
3
+ "version" : " 2.1.0 " ,
4
4
"description" : " The ASC bot" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ export default class WebsiteManager extends EventEmitter {
91
91
result = error ;
92
92
}
93
93
this . process ! . send ( {
94
- _responseID : message . _responseID ,
95
- _result : result
94
+ _data : { result } ,
95
+ _responseID : message . _responseID
96
96
} , errorCB ) ;
97
97
} else if ( action . type === 'GET_GUILD_MEMBERS' ) {
98
98
const membersMap = ( member : GuildMember | null ) => {
@@ -127,14 +127,21 @@ export default class WebsiteManager extends EventEmitter {
127
127
}
128
128
}
129
129
return this . process ! . send ( {
130
- _members : members . map ( membersMap ) ,
130
+ _data : {
131
+ members : members . map ( membersMap )
132
+ } ,
131
133
_responseID : message . _responseID
132
134
} ) ;
133
135
} else if ( action . query ) {
134
136
const members = await this . client . config . defaultGuild . members . fetch ( {
135
137
query : action . query
136
138
} ) ;
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
+ } ) ;
138
145
}
139
146
}
140
147
}
You can’t perform that action at this time.
0 commit comments