K
Docs
API Reference→Pieces→Grab Server Art
🏰

Grab Server Art

img.server_iconThe DarkroomImages

Fetches this server's icon, banner or invite splash as an image spark. Works on Interaction Only bots too — Kitcord looks the server up on demand.

When to use this
  • →Banners and splashes only exist on boosted servers — wire up the None port for a fallback

On the canvas

This is what Grab Server Art looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

🏰
Grab Server Art
img.server_icon
Images
kind
select…
size
select…
stillOnly
boolean…
as
serverArt
output
error

Config fields

FieldTypeReqWhat it does
kindselect—Which art 🎨
sizeselect—Size 📐
stillOnlyboolean—Freeze animated icons ❄️
as
serverArt
text—Save it as ✨

Output ports

outputThe art is in your spark
errorThe server has no art of that kind (or this is a DM)
📐

In TypeScript, this would be…

Not something you need to write — just a look at what Kitcord does for you.

TypeScript
const url = guild.iconURL({ size: 512 }) ?? guild.bannerURL({ size: 1024 });
if (!url) return; // server has no art of that kind
const icon = await loadImage(url);