@duque.edits/sdk 0.2.2 → 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.
|
@@ -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);
|
|
@@ -220,7 +223,7 @@ class GuildUser {
|
|
|
220
223
|
const route = Routes_1.Routes.guilds.users.get(this.manager.guild.id, this.id);
|
|
221
224
|
let payload = {};
|
|
222
225
|
const numericFields = ["wins", "points", "losses", "mvps", "games", "creations"];
|
|
223
|
-
const arrayFields = ["items", "original_channels", "adverts"];
|
|
226
|
+
const arrayFields = ["items", "original_channels", "adverts", "accessories"];
|
|
224
227
|
if (data?.type === "add" || data?.type === "remove") {
|
|
225
228
|
for (const key in data) {
|
|
226
229
|
if (key === "type")
|
package/package.json
CHANGED