Placeholders
Learn how to use placeholders in ItsMyBot to display dynamic information in your messages and components.
Placeholder are dynamic values that can be used in various parts of ItsMyBot configuration to display information that may change over time or based on context. They are similar to variables but are more versatile and available everywhere in the configuration.
The system is similar to the minecraft plugin PlaceholderAPI. You have different extensions that provide different placeholders depending on the context. The format of a placeholder is like this: %<placeholder_name>%. Example: %user_display_name%.
You can use placeholders in placeholder with the format: {<placeholder_name>}. Example: %math_{user_messages} + 10%.
Internal Extensions
These placeholders are available by default in ItsMyBot.
Bot
Retrieve the information of the bot.
%bot_id%
%bot_username%
%bot_mention%
%bot_avatar%Channel
Retrieve the information of a channel.
%channel_id%
%channel_name%
%channel_mention%
%channel_type%
%channel_createdate%
%channel_topic%
%channel_url%
%channel_parent_id%Guild
Retrieve the information of a guild.
%guild_id%
%guild_name%
%guild_icon%
%guild_boosts%
%guild_level%
%guild_create_date%
%guild_afk_channel%
%guild_afk_timeout%
%guild_verification_level%
%guild_members%
%guild_bots%
%guild_users%
%guild_roles%
%guild_roles_list%
%guild_channels%
%guild_voice_channels%
%guild_text_channels%
%guild_announcement_channels%
%guild_stage_channels%
%guild_forum_channels%
%guild_media_channels%
%guild_categories%
%guild_emojis%
%guild_regular_emojis%
%guild_animated_emojis%
%guild_stickers%
%guild_online_users%
%guild_online_bots%
%guild_online_members%
%guild_idle_members%
%guild_dnd_members%
%guild_offline_members%Leaderboard
Retrieve information from a registered leaderboard.
This works with built-in leaderboards such as messages, addon leaderboards such as invites, and leaderboards generated from user number metas.
%leaderboard_<leaderboard-name>_top_<position>%
%leaderboard_<leaderboard-name>_top_<position>_user%
%leaderboard_<leaderboard-name>_top_<position>_value%
%leaderboard_<leaderboard-name>_top_<position>_value_formatted%
%leaderboard_<leaderboard-name>_top_<position>_user_id%
%leaderboard_<leaderboard-name>_top_<position>_user_username%
%leaderboard_<leaderboard-name>_top_<position>_user_display_name%
%leaderboard_<leaderboard-name>_top_<position>_user_mention%
%leaderboard_<leaderboard-name>_top_<position>_user_avatar%
%leaderboard_<leaderboard-name>_top_<position>_user_create_date%
%leaderboard_<leaderboard-name>_top_<position>_user_join_date%
%leaderboard_<leaderboard-name>_top_<position>_user_roles%
%leaderboard_<leaderboard-name>_top_<position>_user_messages%
%leaderboard_<leaderboard-name>_top_<position>_user_coins%%leaderboard_messages_top_1%
%leaderboard_messages_top_1_value%
%leaderboard_messages_top_1_value_formatted%
%leaderboard_messages_top_1_user_mention%You can use any user variable after _user_, following the same names as the User extension.
Math
Perform simple math operations.
%math_<operation>%Member
Retrieve the information of a member. Do not work if the user is not in the guild.
%member_display_name%
%member_server_avatar%
%member_global_avatar%
%member_timed_out_until_date%
%member_timed_out_until_timestamp%
%member_join_date%
%member_join_timestamp%
%member_pending%
%member_server_booster%
%member_booster_date%
%member_booster_timestamp%
%member_presence_status%Message
Retrieve the information of a message.
%message_id%
%message_content%
%message_author_id%
%message_url%Meta
Retrieve information about the metadata. You can find more information about meta here.
%meta_<key>%
%meta_has_<key>%
%meta_include_<key>% # Only for 'list' type
%meta_<key>_length% # Only for 'list' type
%meta_<key>_formatted% # Only for 'list' typeOwner
Retrieve information about the owner of the guild.
%owner_id%
%owner_username%
%owner_display_name%
%owner_mention%
%owner_avatar%
%owner_create_date%
%owner_join_date%
%owner_roles%
%owner_messages%Performance
Retrieve information about the performance of the bot.
%performance_total_memory%
%performance_used_memory%
%performance_free_memory%
%performance_free_memory_percent%
%performance_uptime%
%performance_cpu_usage_percent%Role
Retrieve the information of a role.
%role_id%
%role_name%
%role_mention%
%role_color%
%role_created_at%
%role_position%
%role_hoist%
%role_managed%
%role_mentionable%User
Retrieve the information of a user.
%user_id%
%user_bot%
%user_display_name%
%user_username%
%user_mention%
%user_avatar%
%user_create_date%
%user_join_date%
%user_roles%
%user_messages%
%user_coins%External Extensions
External extensions are available when you add the relevant addons!
Invite Tracker
Retrieve the information of Invite Tracker. Need the Invite Tracker addon
%invitetracker_invites%
%invitetracker_regular%
%invitetracker_bonus%
%invitetracker_left%
%invitetracker_fake%
%invitetracker_inviter%
%invitetracker_inviter_invites%
%invitetracker_inviter_regular%
%invitetracker_inviter_bonus%
%invitetracker_inviter_left%
%invitetracker_inviter_fake%
%invitetracker_inviter_id%
%invitetracker_inviter_username%
%invitetracker_inviter_display_name%
%invitetracker_inviter_mention%
%invitetracker_inviter_avatar%
%invitetracker_inviter_create_date%
%invitetracker_inviter_join_date%
%invitetracker_inviter_roles%
%invitetracker_inviter_messages%
%leaderboard_invites_<placeholder>% # All leadersboard placeholders are also available with the `invitetracker_invites` prefixTickets
Retrieve the information of Tickets. Need the Tickets addon
%tickets_total_tickets%
%tickets_total_open_tickets%
%tickets_total_closed_tickets%
%tickets_user_tickets%
%tickets_user_open_tickets%
%tickets_user_closed_tickets%
%staff_claimed_tickets%
%staff_closed_tickets%McStatus
Get the status of a Minecraft server. Need the McStatus addon
The Ip of the server needs to be in this format: <server-ip> or <server-ip>:<port> if the port is different than 25565.
%mcstatus_<server-ip>_players%
%mcstatus_<server-ip>_max_players%
%mcstatus_<server-ip>_motd%
%mcstatus_<server-ip>_version%
%mcstatus_<server-ip>_host%
%mcstatus_<server-ip>_port%
%mcstatus_<server-ip>_icon%
%mcstatus_<server-ip>_status%