Entity Info
serverSplash
$serverSplash[] — Server Invite Splash Image
$serverSplash[] returns the value of the guild.splash context variable supplied by the host (the invite splash image of the current server). The engine does not query Discord itself.
Syntax
$serverSplash[(unused)]
Parameters
One optional argument is accepted but ignored: the splash of another server cannot be read.
Return Value
- Type:
string - The text of
guild.splashas supplied by the host; when the bot runner builds it, it is the URL of the splash image. - An empty string if the host supplied none (for example when the server has no splash image).
Examples
Simple display
$if[$serverSplash!=]
$sendMessage[Invite splash: $serverSplash]
$else
$sendMessage[This server does not have an invite splash image.]
$endif
Embed with splash
$title[$serverName — Join us!]
$description[$serverDescription]
$image[$serverSplash]
$thumbnail[$serverIcon]
$color[#5865F2]
Custom invite page
$title[🌟 Invite — $serverName]
$description[You are invited to join $serverName!]
$image[$serverSplash]
$addField[Invite Link;discord.gg/$serverVanityURL;yes]
$addField[Members;$membersCount;yes]
$color[#9B59B6]
Notes
- The splash image is a different value from the server banner (
$serverBanner). - If there is no splash image, the function returns an empty string; an empty
$image[]should then be avoided.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.