gamerbot-module 1.0.9 → 1.1.1

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.
@@ -17,6 +17,7 @@ export declare class GuildData {
17
17
  sverokMails: Array<string>;
18
18
  frameConfig: Array<object>;
19
19
  json_data: any;
20
+ extraObjects: Map<string, any>;
20
21
  constructor(json_data: any);
21
22
  /**
22
23
  * Saves guild data to database
@@ -20,6 +20,7 @@ export class GuildData {
20
20
  this.staffModlogs = json_data.staffModlogs;
21
21
  this.sverokMails = json_data.sverokMails;
22
22
  this.frameConfig = json_data.frameConfig;
23
+ this.extraObjects = json_data.extraObjects;
23
24
  }
24
25
  /**
25
26
  * Saves guild data to database
@@ -59,6 +59,8 @@ export class Models {
59
59
  if (profile_data.level > 31) {
60
60
  xpPercentage = Math.round((profile_data.xp / 961) * 100);
61
61
  }
62
+ if (!profile_data.colorHexCode)
63
+ profile_data.colorHexCode = "#000000";
62
64
  const data = (await this.fetch_data(GamerBotAPI.API_URL + "/public_api/frame/generate", "POST", {
63
65
  userid: user_id,
64
66
  frame_id: profile_data.profileFrame,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gamerbot-module",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",