mcutils-js-api 2.0.39 → 2.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -213,7 +213,7 @@ export declare class McUtilsAPI {
|
|
|
213
213
|
* @returns the player search entry or the error (if one occurred)
|
|
214
214
|
*/
|
|
215
215
|
searchPlayers(query: string): Promise<{
|
|
216
|
-
|
|
216
|
+
entries?: PlayerSearchEntry[];
|
|
217
217
|
error?: ErrorResponse;
|
|
218
218
|
}>;
|
|
219
219
|
}
|
package/dist/index.js
CHANGED
|
@@ -214,8 +214,8 @@ export class McUtilsAPI {
|
|
|
214
214
|
* @returns the player search entry or the error (if one occurred)
|
|
215
215
|
*/
|
|
216
216
|
async searchPlayers(query) {
|
|
217
|
-
const { data, error } = await this.request(`/players
|
|
218
|
-
return error ? { error } : {
|
|
217
|
+
const { data, error } = await this.request(`/players${this.buildParams({ query: query })}`);
|
|
218
|
+
return error ? { error } : { entries: data };
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
export default McUtilsAPI;
|