We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f56f04 commit 29cf8dcCopy full SHA for 29cf8dc
src/utils/embed.ts
@@ -12,8 +12,6 @@ import {
12
import { stringify } from './stringify'
13
import { createClickableURLString } from './url'
14
15
-const DEFAULT_AVATAR_URL = 'https://cdn.discordapp.com/embed/avatars/0.png'
16
-
17
// Discord requires a "value" for an embed, but a zero-width+space suffices
18
const ZWS = ''
19
@@ -73,7 +71,7 @@ function createPublicEmbed (submission: CompletedSubmission): APIEmbed {
73
71
.setTimestamp(new Date())
74
72
.setAuthor({
75
name: submission.author.user.tag,
76
- iconURL: submission.author.avatarURL() ?? DEFAULT_AVATAR_URL
+ iconURL: submission.author.displayAvatarURL()
77
})
78
.setFields(
79
{ name: 'Languages/technologies used', value: submission.tech },
0 commit comments