# - Variables

When specifying a parameter in either commands or modals/forms you can use variables. There are tons of variables available to use!

”ctx” = Parent / Root variable.

<pre><code>GUILD VARIABLE
——————————————
Var: {ctx.guild}
Paths:
.id                                          (ID)
.name                                      (Name)
.description               ([If any, description)
.icon.url                    (Guild icon img url)
.member_count                 (Amount of members)
.bots                     (List of bots in guild)
.humans                  (List of users in guild)
.created_at                  (When guild created)
.nsfw_level                          (NSFW level)
.mfa_level              (Multi-Factor-Auth level)
.owner → MEMBER
Example: {ctx.guild.id}


MEMBER VARIABLE
———————————————
Var: {ctx.user} or {ctx}
Paths:
.id                                         (ID)
.metaname [Recommended]               (Best name)
.name                   (If any, Global username)
.global_nam         (If any, Global display name)
.nick                (If any, Guild display name)
.avatar.url      (If any, Regular avatar img url)
.banner.url      (If any, Regular banner img url)
.guild_avatar.url  (If any, Guild avatar img url)
.bot                              (True or False)
.status                (Online, DnD, Idle, etc..)
.joined_at                    (When joined guild)
.created_at                (When account created)
.guild → GUILD
Example: {ctx.id} or {ctx.user.id}


CHANNEL VARIABLE
————————————————
Var: {ctx.channel}
Paths:
.id                                          (ID)
.name                                      (Name)
.topic                              (Description)
.type                           (Type of channel)
.nsfw                             (True or False)
.position                     (Position in guild)
.slowmode                       (Slowmode amount)
.category → CHANNEL        
.guild → GUILD           
.last_message → MESSAGE
Example: {ctx.channel.id}


MESSAGE VARIABLE
————————————————
Var: {ctx}
Paths:
.id                                          (ID)
.content                        (Message content)
.mentions       (If any, List of mentions in msg)
.created_at                           (When sent)
.edited_at                  (If any, When edited)
.pinned                           (True or False)
.author → MEMBER  
.channel → CHANNEL 
.guild → GUILD       
<strong>Example: {ctx.content}
</strong>


UTILITY VARIABLES
—————————————————
{utils.hex.&#x3C;color_name>}
{utils.randint(&#x3C;min>,&#x3C;max>)}
{utils.randchoice(&#x3C;opt1>,&#x3C;etc>)}
</code></pre>

There can be up to 100 variables in a text input at a time. Anymore variables will be ignored.

To escape variables, just put “{“ & “}” twice as shown in this example: “{{excaped text}} {variable}”.

Anthurium variables are dynamic which means their name may change depending on where they are used! The root can change based on where it‘s referenced. The variable root is “ctx”. The only variables that are not dynamic are ”utils.” variables.

<details>

<summary>🏳️‍🌈Hex Color Variables</summary>

* Blood (d30a10)
* Red (f30c12)
* Rose (f46c8c)
* Palerose (e69eaf)
* Anthurium (d1415f)
* Cherry (b02e55)
* Richmaroon (aa3a3b)
* Maroon (93385a)
* Brown (784c37)
* Chocolate (513325)
* Tangyorange (ff4300)
* Orange (ff5f26)
* Honey (e28000)
* Yellow (fcff00)
* Banana (fdff8f)
* Gold (ffb700)
* Lime (cfff00)
* Palegreen (98cf8e)
* Green (44c936)
* Boldgreen (00ff33)
* Forest (4e7658)
* Cyan (41bcbe)
* Sky (00cfff)
* Blue (0296fd)
* Boldblue (000aff)
* Blurple (5865F2)
* Midnight (191970)
* Purple (7c25ff)
* Lavender (b579b7)
* Magenta (e700ff)
* Pink (ff1f82)
* White (ffffff)
* Cloud (c9c9c9)
* Gray or Grey (474747)
* Black (000000)
* None (2B2D31) - Matches discord’s background for the illusion of invisiblity.

</details>
