Commit 8860156
committed
refactor: use discord.js
- Replaces manual avatar CDN URL construction with Discord.js's `avatarURL()` methods.
- Defaults to optimized formats like webp instead of the previously hardcoded .png for non-animated avatars,
which significantly reduced avatar size (e.g., from 24 KB to 1 KB).avatarURL()
1 parent eef9733 commit 8860156
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 85 | + | |
92 | 86 | | |
93 | 87 | | |
94 | 88 | | |
95 | 89 | | |
96 | 90 | | |
97 | 91 | | |
98 | | - | |
99 | 92 | | |
100 | 93 | | |
101 | | - | |
102 | | - | |
| 94 | + | |
| 95 | + | |
103 | 96 | | |
104 | 97 | | |
105 | 98 | | |
| |||
0 commit comments