Skip to content
Permalink
Browse files

Added bigger size to avatar fetch when PNG.

  • Loading branch information...
jdeurt committed Jul 20, 2019
1 parent f1f8406 commit e75cce529e9dec4be6e8cedebbfe19cd29d890a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 controllers/api/discord/avatar.js
@@ -12,7 +12,7 @@ module.exports = (req, res) => {
},
json: true
}).then(data => {
const avatarUrl = `https://cdn.discordapp.com/avatars/${req.params.id}/${data.body.avatar}${data.body.avatar.startsWith("a_") ? ".gif" : ".png"}`;
const avatarUrl = `https://cdn.discordapp.com/avatars/${req.params.id}/${data.body.avatar}${data.body.avatar.startsWith("a_") ? ".gif" : ".png?size=2048"}`;

res.redirect(avatarUrl);
}).catch(err => {

0 comments on commit e75cce5

Please sign in to comment.
You can’t perform that action at this time.