Only display PNG for default avatars

This commit is contained in:
Dragon Fire
2020-03-05 12:46:01 -05:00
parent 7531db327b
commit 089ed05ee3
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ module.exports = class AvatarCommand extends Command {
}
run(msg, { user }) {
const formats = ['webp', 'png', 'jpg'];
const formats = ['png'];
if (user.avatar) formats.push('jpg', 'webp');
const format = user.avatar && user.avatar.startsWith('a_') ? 'gif' : 'png';
if (format === 'gif') formats.push('gif');
const embed = new MessageEmbed()
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "112.0.1",
"version": "112.0.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {