Skip to content

Commit bcd8596

Browse files
committed
chore: ✨ Update user module for improved functionality
1 parent c330f67 commit bcd8596

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/modules/user/user.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { xpForLevel } from "../xp/xpForMessage.util.js";
1313

1414
export const profileFont = "Cascadia Code";
1515
Canvas.GlobalFonts.registerFromPath(branding.font, profileFont);
16-
export function getDDColorGradiant(
16+
export function getDDColorGradient(
1717
ctx: Canvas.SKRSContext2D,
1818
startX: number,
1919
width: number,
@@ -163,7 +163,7 @@ export async function generateUserProfileImage(
163163
// "https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fwww.quickmeme.com%2Fimg%2F46%2F468394fc32d72c2bdc04abd04834782a2de7fee5834b5df2fa3b9295262db4cb.jpg&f=1&nofb=1&ipt=be4cd3afa2da068f2bb6b0639cb2ada1402241214afa20a08be89b7c7ee71485";
164164
const roleIcon = user.roles.highest.iconURL({
165165
size: 256,
166-
extension: "jpg",
166+
extension: "png",
167167
forceStatic: true,
168168
});
169169
if (roleIcon) {
@@ -195,7 +195,7 @@ export async function generateUserProfileImage(
195195
h - 5,
196196
dividerWidth,
197197
"horizontal",
198-
getDDColorGradiant(ctx, padding, dividerWidth),
198+
getDDColorGradient(ctx, padding, dividerWidth),
199199
2,
200200
);
201201
drawDeveloperDenText(ctx, w - padding, padding);
@@ -219,7 +219,7 @@ export function drawDeveloperDenText(
219219
y + textHeight - 8,
220220
textWidth,
221221
"horizontal",
222-
getDDColorGradiant(ctx, x - textWidth, textWidth),
222+
getDDColorGradient(ctx, x - textWidth, textWidth),
223223
5,
224224
);
225225
ctx.fillStyle = "#ffffff";

0 commit comments

Comments
 (0)