docs
variables
every placeholder you can use in rina scripts.
variables are placeholders like {user.mention} that get replaced when a message is sent. they work in every message template: welcome, goodbye, boost, auto responders, level ups, tickets, invoke messages and ,createembed.
unknown variables are left as they are, so a typo shows up in the message instead of disappearing.
user
the member that triggered the message
| variable | description | example |
|---|---|---|
{user} | username | rina |
{user.mention} | mention | <@1000000000000000000> |
{user.name} | username | rina |
{user.display_name} | server display name | Rina ✿ |
{user.id} | user id | 1000000000000000000 |
{user.avatar} | avatar url (server avatar if set) | https://cdn.discordapp.com/embed/avatars/0.png |
{user.global_avatar} | global avatar url | https://cdn.discordapp.com/embed/avatars/0.png |
{user.created_at} | account creation date | <t:1600000000:D> |
{user.created_at.relative} | account age | <t:1600000000:R> |
{user.joined_at} | join date | <t:1700000000:D> |
{user.joined_at.relative} | time since joining | <t:1700000000:R> |
{user.join_position} | join position | 1337 |
{user.join_position.format} | join position (ordinal) | 1337th |
{user.bot} | is the user a bot | no |
{user.boost} | is the member boosting | yes |
{user.boost_since} | boosting since | <t:1700000000:R> |
{user.color} | display colour hex | #f472b6 |
{user.top_role} | highest role | members |
guild
the server
| variable | description | example |
|---|---|---|
{guild.name} | server name | rina hq |
{guild.id} | server id | 1000000000000000001 |
{guild.count} | member count | 1337 |
{guild.count.format} | member count (ordinal) | 1337th |
{guild.humans} | human count | 1300 |
{guild.bots} | bot count | 37 |
{guild.icon} | icon url | https://cdn.discordapp.com/embed/avatars/1.png |
{guild.banner} | banner url | — |
{guild.splash} | invite splash url | — |
{guild.owner_id} | owner id | 1000000000000000000 |
{guild.vanity} | vanity code | rina |
{guild.boost_count} | boost count | 14 |
{guild.boost_count.format} | boost count (ordinal) | 14th |
{guild.boost_tier} | boost level | 2 |
{guild.created_at} | creation date | <t:1500000000:D> |
{guild.created_at.relative} | server age | <t:1500000000:R> |
{guild.channels} | channel count | 42 |
{guild.roles} | role count | 30 |
{guild.emojis} | emoji count | 120 |
channel
the channel the message is sent in
| variable | description | example |
|---|---|---|
{channel.name} | channel name | general |
{channel.mention} | channel mention | <#1000000000000000002> |
{channel.id} | channel id | 1000000000000000002 |
{channel.topic} | channel topic | say hi |
misc
utility values
| variable | description | example |
|---|---|---|
{date} | current date | <t:1700000000:D> |
{time} | current time | <t:1700000000:t> |
{timestamp} | unix timestamp | 1700000000 |
{newline} | a line break | \n |
level
only in level-up messages
| variable | description | example |
|---|---|---|
{level} | new level | 10 |
{xp} | total xp | 15400 |
{rank} | leaderboard rank | 3 |
moderation
only in invoke / moderation messages
| variable | description | example |
|---|---|---|
{moderator} | moderator username | mod |
{moderator.mention} | moderator mention | <@1000000000000000003> |
{reason} | action reason | spamming |
{duration} | action duration | 1 hour |
{case} | case number | 42 |