🏰
Grab Server Art
img.server_iconThe DarkroomImagesFetches 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.
🏰Images
Grab Server Art
img.server_iconkind
select…
size
select…
stillOnly
boolean…
as
serverArt
output
error
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
kind | select | — | Which art 🎨 |
size | select | — | Size 📐 |
stillOnly | boolean | — | Freeze animated icons ❄️ |
asserverArt | 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);Related pieces
More Images pieces