Skip to content

Commit

Permalink
background
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Apr 26, 2023
1 parent ce02dfc commit ae6c146
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Binary file added achievementIcons/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions islander/AchievementsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,19 @@ export class AchievementsModule {
.setRank(1, "RANK", false)
.setLevel(this.getLevel(member.XP), "LEVEL", true)
.setCustomStatusColor("#00FF00")
.setProgressBar("#00FF00", "COLOR")
.setProgressBar("#FF0000", "COLOR")
.setBackground("COLOR", "#2b2f35")
.setOverlay("#2b2f35", 0.4);
.setAchievements([]);
if (guildMember.id == "178435947816419328") {
rank
.setOverlay("#2b2f35", 0.4)
.setAchievements([
{
imagePath: "achievementIcons/achievement.png",
},
])
.setBackground("IMAGE", "achievementIcons/background.png");
}

const data = await rank.build();
return new AttachmentBuilder(data, {
Expand Down

0 comments on commit ae6c146

Please sign in to comment.