Is there a way to check if server banner is just an static picture or animated?
For example in the command Avatar this works automatically by just doing this
when the pinged user has an animated pfp the command just returns his avatar in gif format, otherwise just returns his pfp in png format.
But when I try to do the same thing with server banner just returns the format that I specified, like
this returns a png, even if the server banner is animated. So, I wanted to ask if there's a way to check if the banner is animated or Static, so I can put an
If
that says something like "if animated then gif otherwise png"
I truly don't wanna use the webp format 4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.1. Why don't you wanna use .webp ?
<:E_think:793918036787986453>
because when the file is compressed in webp the image becomes smaller than it would be as a gif/png and I personally feel that it loses quality <:8_:1002860605918683216>
but I can get animated server banners with v13, the issue is that I need to write something like
.setImage(guild.bannerURL({format: 'gif', size: 4096, dynamic: true}))
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View