Skip to content

Commit 29cf8dc

Browse files
authored
fix: use default avatar URLs (#118)
1 parent 6f56f04 commit 29cf8dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/embed.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import {
1212
import { stringify } from './stringify'
1313
import { createClickableURLString } from './url'
1414

15-
const DEFAULT_AVATAR_URL = 'https://cdn.discordapp.com/embed/avatars/0.png'
16-
1715
// Discord requires a "value" for an embed, but a zero-width+space suffices
1816
const ZWS = '​'
1917

@@ -73,7 +71,7 @@ function createPublicEmbed (submission: CompletedSubmission): APIEmbed {
7371
.setTimestamp(new Date())
7472
.setAuthor({
7573
name: submission.author.user.tag,
76-
iconURL: submission.author.avatarURL() ?? DEFAULT_AVATAR_URL
74+
iconURL: submission.author.displayAvatarURL()
7775
})
7876
.setFields(
7977
{ name: 'Languages/technologies used', value: submission.tech },

0 commit comments

Comments
 (0)