Skip to content

Commit

Permalink
feat: use thumbnail corresponding to clue difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Sep 18, 2024
1 parent 53a64a9 commit 92d906b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/dinkplugin/notifiers/ClueNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ private void handleNotify(Map<Integer, Integer> clueItems) {
.replacement("%TOTAL_VALUE%", Replacements.ofText(QuantityFormatter.quantityToStackSize(totalPrice.get())))
.replacement("%LOOT%", lootMessage.build())
.build();
String icon = String.format("https://oldschool.runescape.wiki/images/Clue_scroll_(%s).png", clueType.toLowerCase());
createMessage(screenshot,
NotificationBody.builder()
.text(notifyMessage)
.extra(new ClueNotificationData(clueType, clueCount, itemStacks))
.type(NotificationType.CLUE)
.embeds(embeds)
.thumbnailUrl(icon)
.build()
);
}
Expand Down

0 comments on commit 92d906b

Please sign in to comment.