Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit b169dc7

Browse files
refactor: Replace crafatar with minotar for avatar fetching (#181)
1 parent 16e8607 commit b169dc7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

common/src/main/java/net/william278/huskchat/discord/SpicordHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private void dispatchMessage(@NotNull ChatMessage message, @NotNull GuildMessage
213213
message.sender.getName(),
214214
message.sender.getServerName()
215215
),
216-
String.format("https://crafatar.com/avatars/%s?size=64",
216+
String.format("https://minotar.net/avatar/%s/64",
217217
message.sender.getUuid()
218218
)
219219
)

common/src/main/resources/discord/embedded_message.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"color": 64410,
1010
"footer": {
1111
"text": "{SENDER_USERNAME} • {SENDER_CHANNEL}",
12-
"icon_url": "https://crafatar.com/avatars/{SENDER_UUID}?size=64"
12+
"icon_url": "https://minotar.net/avatar/{SENDER_UUID}/64"
1313
},
1414
"timestamp": "{CURRENT_TIMESTAMP}"
1515
}

common/src/main/resources/discord/inline_message.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"avatar_url": "https://crafatar.com/avatars/{SENDER_UUID}?size=128",
2+
"avatar_url": "https://minotar.net/avatar/{SENDER_UUID}/128",
33
"username": "[{SENDER_CHANNEL}] {SENDER_USERNAME}",
44
"content": "{CHAT_MESSAGE}",
55
"allowed_mentions": { "parse": [] }

0 commit comments

Comments
 (0)