⚗️- Variables
Anthurium tries to be as customizable as possible! That’s why we provide a wide selection of variables & variable utilities for usage in out app.
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
Example: {ctx.content}
UTILITY VARIABLES
—————————————————
{utils.hex.<color_name>}
{utils.randint(<min>,<max>)}
{utils.randchoice(<opt1>,<etc>)}Last updated