mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +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 }) {
|
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';
|
const format = user.avatar && user.avatar.startsWith('a_') ? 'gif' : 'png';
|
||||||
if (format === 'gif') formats.push('gif');
|
if (format === 'gif') formats.push('gif');
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "112.0.1",
|
"version": "112.0.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user