Text formatting

Text formatting allows you to create powerful messages for different users and context and increase your audience range. It will replace some prefixed text with some dynamic text, for instance in Welcome service you can set a welcome message with text formatting to change the text based on the user who joined. e.g. Welcome {user} to {guild} with {memberCount} user/s Now the {user}, {guild}, {memberCount} variables will be replaced at runtime with the appropriate data. e.g. output Welcome Waterball to April Testing with 3 user/s.

This is a new feature is may not be available in every service.

Table of content

User

Tag Description Example output
{user} The User username Waterball
{user.mention} Mention the user @Waterball#0615
{user.discriminator} User discriminator 0615
{user.avatar} Avatar URL https://cdn.discordapp.com/avatars/195568671274434560/61a8612880d214e484cfe9756a724266.png
{user.fullname} Full name of the user Waterball#0615
{user.id} Id of the user 195568671274434560
{user.activity} User activity League of legend
{user.created} Full Date/time of when user has been created Thu, 23 Jun 2016 16:00:04 GMT
{user.created.date} Date of when user has been created 23.06.2016
{user.created.ago} Date/Time ago of when user has been created 3 years ago
{user.created.time} Full Date/time of when user joined 16:00
{user.joined} Full Date/time of when user joined Mon, 17 Jun 2019 19:23:01 GMT
{user.joined.date} Date of when user joined 17.06.2019
{user.joined.ago} Date/time ago of when user joined 10 days ago
{user.joined.time} Time of when user joined 13:12

Guild

Tag Description Example output
{guild} The server name April Testing
{memberCount} Members count 3
{guild.id} The id of the guild 590166822196609024
{guild.created.ago} Date/Time ago of when guild has been created 10 days ago
{guild.created.date} Date of when guild has been created 17.06.2019
{guild.created.time} Time of when guild has been created 15:40
{guild.icon} User activity https/cdn.discordapp.com/icons/321302816465485834/038225fd41246e93f6986fd23337ceb3.jpg

Channel

Tag Description Example output
{channel} Channel name general
{channel.id} id of the channel 591973650664783894
{channel.mention} Channel mention #general or <#general>
{channel.created} Full Date/time of when channel has been created Thu, 23 Jun 2016 16:00:05 GMT
{channel.created.date} Date of when guild has been created 17.06.2019
{channel.created.time} Time of when guild has been created 15:40
{channel.created.ago} Date/Time ago of when channel has been created 10 days ago
{channel.nsfw} Whether channel is NSFW or not True or false
{channel.topic} Topic of the channel This is the topic for my channel

How to use

You can use text formatting in any service that allow you to set custom message, you can use choose from the above tags and use them in the message. e.g. !Welcome setwelcomemessage Welcome {user} in {guild}!! You're the {memberCount}th member. Ours server has been founded {guild.created.ago} and continuously increasing! All tags use curly brackets between the key so always make sure to use them, and they'll be replaced at runtime with the appropriate value.

Last updated on 28ยบ giu 2019