Scripting
Variables
All available variables within lunar.
These variables are accessible throughout lunar and can be used in any command context which contains a message
parameter (e.g. welcome
& goodbye
)
Variable | Output |
---|---|
{guild.name} | The guild’s name |
{guild.id} | The guild’s ID |
{guild.memberCount} | The guild’s member count |
{guild.owner_id} | The guild’s owner ID |
{guild.created_at} | The guild’s creation date in UTC |
{guild.created_at_timestamp} | The guild’s creation date in UNIX |
{guild.emoji_count} | The guild’s emoji count |
{guild.role_count} | The guild’s role count |
{guild.boost_count} | The guild’s boost count |
{guild.boost_tier} | The guild’s boost tier, defaults to No Level if none |
{guild.preferred_locale} | The guild’s preferred locale |
{guild.key_features} | The guild’s list of features (possibly N/A ) |
{guild.icon} | The guild’s icon URL as a PNG (possibly N/A ) |
{guild.banner} | The guild’s banner URL as a PNG (possibly N/A ) |
{guild.splash} | The guild’s splash URL as a PNG (possibly N/A ) |
{guild.discovery} | The guild’s discovery splash URL as a PNG (possibly N/A ) |
{guild.max_presences} | The guild’s max presences amount |
{guild.max_members} | The guild’s max members amount |
{guild.max_video_channel_users} | The guild’s max video channel users |
{guild.afk_timeout} | The guild’s AFK timeout in seconds |
{guild.afk_channel} | The guild’s AFK channel (possibly N/A ) |
{guild.channels} | The guild’s list of text, voice & category channels (possibly N/A ) |
{guild.channels_count} | The guild’s total channel count |
{guild.text_channels} | The guild’s list of text channels |
{guild.text_channels_count} | The guild’s text channel count |
{guild.voice_channels} | The guild’s list of voice channels |
{guild.voice_channels_count} | The guild’s voice channel count |
{guild.category_channels} | The guild’s list of category channels |
{guild.category_channels_count} | The guild’s category channel count |
Variable | Output |
---|---|
{guild.name} | The guild’s name |
{guild.id} | The guild’s ID |
{guild.memberCount} | The guild’s member count |
{guild.owner_id} | The guild’s owner ID |
{guild.created_at} | The guild’s creation date in UTC |
{guild.created_at_timestamp} | The guild’s creation date in UNIX |
{guild.emoji_count} | The guild’s emoji count |
{guild.role_count} | The guild’s role count |
{guild.boost_count} | The guild’s boost count |
{guild.boost_tier} | The guild’s boost tier, defaults to No Level if none |
{guild.preferred_locale} | The guild’s preferred locale |
{guild.key_features} | The guild’s list of features (possibly N/A ) |
{guild.icon} | The guild’s icon URL as a PNG (possibly N/A ) |
{guild.banner} | The guild’s banner URL as a PNG (possibly N/A ) |
{guild.splash} | The guild’s splash URL as a PNG (possibly N/A ) |
{guild.discovery} | The guild’s discovery splash URL as a PNG (possibly N/A ) |
{guild.max_presences} | The guild’s max presences amount |
{guild.max_members} | The guild’s max members amount |
{guild.max_video_channel_users} | The guild’s max video channel users |
{guild.afk_timeout} | The guild’s AFK timeout in seconds |
{guild.afk_channel} | The guild’s AFK channel (possibly N/A ) |
{guild.channels} | The guild’s list of text, voice & category channels (possibly N/A ) |
{guild.channels_count} | The guild’s total channel count |
{guild.text_channels} | The guild’s list of text channels |
{guild.text_channels_count} | The guild’s text channel count |
{guild.voice_channels} | The guild’s list of voice channels |
{guild.voice_channels_count} | The guild’s voice channel count |
{guild.category_channels} | The guild’s list of category channels |
{guild.category_channels_count} | The guild’s category channel count |
Variable | Output |
---|---|
{user} | The user’s mention |
{user.id} | The user’s ID |
{user.name} | The user’s name |
{user.avatar} | The user’s profile picture |
{user.banner} | The user’s profile banner |
{user.discriminator} | The user’s discriminator |
{user.created_at} | The user’s account creation date in UTC |
{user.created_at_timestamp} | The user’s account creation date in UNIX |
{user.color} | The user’s top role hex code |
{user.bot} | Yes /No if the user is a bot |