Skip to content

Commit

Permalink
visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Apr 19, 2023
1 parent 1b04659 commit 83cd090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions islander/AchievementsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ export class AchievementsModule {
.setLevel(1, "LEVEL", true)
.setStatus("online")
.setProgressBar(["#FF0000", "#FF0000"], "GRADIENT")
.setUsername(guildMember.username)
.setDiscriminator(guildMember.discriminator);
.setUsername(guildMember.username);

const data = await rank.build();
return new AttachmentBuilder(data, {
Expand Down
4 changes: 2 additions & 2 deletions islander/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,12 +848,12 @@ export default class Rank {
ctx.textAlign = "start";
ctx.fillText(
"/ " + Util.toAbbrev(this.data.requiredXP.data),
700 + ctx.measureText(Util.toAbbrev(this.data.currentXP.data)).width + 15,
720 + ctx.measureText(Util.toAbbrev(this.data.currentXP.data)).width + 15,
164
);

ctx.fillStyle = this.data.currentXP.color;
ctx.fillText(Util.toAbbrev(this.data.currentXP.data), 700, 164);
ctx.fillText(Util.toAbbrev(this.data.currentXP.data), 720, 164);

// draw progressbar
ctx.beginPath();
Expand Down

0 comments on commit 83cd090

Please sign in to comment.