revbot.js 0.2.4 → 0.2.5
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.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2951,9 +2951,14 @@ var MessageManager = class extends BaseManager {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
if (typeof query === "number") query = { limit: query };
|
|
2953
2953
|
else if (typeof query === "undefined") query = { limit: 100 };
|
|
2954
|
+
const queryObj = Object.fromEntries(
|
|
2955
|
+
Object.entries(query).filter(
|
|
2956
|
+
([, v]) => v !== void 0
|
|
2957
|
+
)
|
|
2958
|
+
);
|
|
2954
2959
|
const messages = yield this.client.api.get(
|
|
2955
2960
|
`/channels/${this.channel.id}/messages`,
|
|
2956
|
-
|
|
2961
|
+
queryObj
|
|
2957
2962
|
);
|
|
2958
2963
|
return messages.reduce((coll, cur) => {
|
|
2959
2964
|
const msg = this._add(cur);
|
|
@@ -3300,7 +3305,7 @@ import { EventEmitter } from "node:events";
|
|
|
3300
3305
|
import axios4, { AxiosError } from "axios";
|
|
3301
3306
|
|
|
3302
3307
|
// package.json
|
|
3303
|
-
var version = "0.2.
|
|
3308
|
+
var version = "0.2.5";
|
|
3304
3309
|
|
|
3305
3310
|
// src/rest/restUtils/rateLimitQueue.ts
|
|
3306
3311
|
import axios3 from "axios";
|