@duque.edits/sdk 0.2.2 → 0.2.21

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: {
@@ -149,8 +149,11 @@ class GuildUser {
149
149
  profile: {
150
150
  avatarUrl: data.avatarUrl || this.profile.avatarUrl || "",
151
151
  bannerUrl: data.bannerUrl || this.profile.bannerUrl || "",
152
- bio: data.bio || this.profile.bio || "",
152
+ bio: data.bio || this.profile.bio || "Melhor da minha aldeia (use !bio para alterar)",
153
153
  name: data.name || this.profile.name || "",
154
+ textColor: data.textColor || this.profile.textColor || "#ffffff",
155
+ primaryColor: data.primaryColor || this.profile.primaryColor || "#272727",
156
+ secondaryColor: data.secondaryColor || this.profile.secondaryColor || "#151515",
154
157
  },
155
158
  };
156
159
  const route = Routes_1.Routes.guilds.users.update(this.manager.guild.id, this.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.21",
4
4
  "main": "dist/index",
5
5
  "types": "./types/index.d.ts",
6
6
  "typings": "./types/index.d.ts",
@@ -4,6 +4,9 @@ export interface Profile {
4
4
  avatarUrl?: string;
5
5
  bio?: string;
6
6
  name?: string;
7
+ textColor?: string;
8
+ primaryColor?: string;
9
+ secondaryColor?: string;
7
10
  }
8
11
  export interface APIGuildUser {
9
12
  /** User's id */