3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00
https://en.wiktionary.org/wiki/extention
This commit is contained in:
Commandtechno 2021-06-29 21:52:10 -05:00 committed by GitHub
parent 59ad7a22db
commit 315144a66d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {