mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +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()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "112.0.1",
|
||||
"version": "112.0.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user