Banner

Fetching a user's profile banner.

Command

/banner user

What it does

Idk I forgot.

Banner

Example output of the /bannercommand, showing a user's profile banner.

More information

Here's how it works.

Fetches and displays a user's Discord banner in an embed.

Behavior:


If a user option is provided, it fetches that user's banner.
If no user is provided, it defaults to the command invoker's banner.
If the user does not have a banner set, the bot replies with a message instead of an embed.

Banner Handling:


Fetches the full user object from Discord to access the banner property.
Checks if the banner is animated (a_ prefix in the hash).
Uses .gif for animated banners, otherwise .png.
Fetches the banner at 1024px resolution for high quality.

Response:


Sends an embed containing:
- The requested user's banner image.
- The user's name in the embed title.
- The user who requested the command in the footer.
- A timestamp for context.

Error Handling:


If fetching fails, the error is logged, and the bot replies with a fallback error message.
If an error does occur please report. Thank you (* ^ ω ^)

© 2025 Wazuup. Built with NodeJS & Typescript.