From 315144a66de7ab51ecce34a95437d783c7941615 Mon Sep 17 00:00:00 2001 From: Commandtechno <68407783+Commandtechno@users.noreply.github.com> Date: Tue, 29 Jun 2021 21:52:10 -0500 Subject: [PATCH] One more https://en.wiktionary.org/wiki/extention --- backend/src/plugins/Utility/commands/AvatarCmd.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/AvatarCmd.ts b/backend/src/plugins/Utility/commands/AvatarCmd.ts index 7ab1fac8..8c230889 100644 --- a/backend/src/plugins/Utility/commands/AvatarCmd.ts +++ b/backend/src/plugins/Utility/commands/AvatarCmd.ts @@ -17,7 +17,7 @@ export const AvatarCmd = utilityCmd({ const user = args.user || msg.author; if (!(user instanceof UnknownUser)) { let extension = user.avatarURL.slice(user.avatarURL.lastIndexOf("."), user.avatarURL.lastIndexOf("?")); - // Some pngs can have the .jpg extention for some reason, so we always use .png for static images + // Some pngs can have the .jpg extension for some reason, so we always use .png for static images extension = extension === ".gif" ? extension : ".png"; const avatarUrl = user.avatarURL.slice(0, user.avatarURL.lastIndexOf(".")); const embed: EmbedOptions = {