@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.
@@ -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
- //base: "https://dpqd.shardweb.app/api/v1",
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")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "main": "dist/index",
5
5
  "types": "./types/index.d.ts",
6
6
  "typings": "./types/index.d.ts",