@duque.edits/sdk 0.2.21 → 0.2.22
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/rest/Routes.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Routes = void 0;
|
|
4
4
|
exports.Routes = {
|
|
5
|
-
base: "http://localhost:80/api/v1",
|
|
6
|
-
|
|
5
|
+
//base: "http://localhost:80/api/v1",
|
|
6
|
+
base: "https://dpqd.shardweb.app/api/v1",
|
|
7
7
|
field: (field) => `/${field}`,
|
|
8
8
|
fields: (...fields) => `${fields.join("/")}`,
|
|
9
9
|
guilds: {
|
|
@@ -223,7 +223,7 @@ class GuildUser {
|
|
|
223
223
|
const route = Routes_1.Routes.guilds.users.get(this.manager.guild.id, this.id);
|
|
224
224
|
let payload = {};
|
|
225
225
|
const numericFields = ["wins", "points", "losses", "mvps", "games", "creations"];
|
|
226
|
-
const arrayFields = ["items", "original_channels", "adverts"];
|
|
226
|
+
const arrayFields = ["items", "original_channels", "adverts", "accessories"];
|
|
227
227
|
if (data?.type === "add" || data?.type === "remove") {
|
|
228
228
|
for (const key in data) {
|
|
229
229
|
if (key === "type")
|