mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Only display PNG for default avatars
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user