Placeholders
All placeholders require PlaceholderAPI and use the %sndiscordlink_ prefix.
| Placeholder | Description |
|---|---|
%sndiscordlink_linked% | Whether the player is linked, rendered with the status.linked-yes and status.linked-no words from the language file |
%sndiscordlink_discord_id% | The linked Discord id, or the status.none word when the player is not linked |
%sndiscordlink_discord_name% | The same id as above, so you can render it as a mention. No display name is stored |
%sndiscordlink_boosting% | Whether the linked member boosts the guild, using status.boosting-yes and status.boosting-no |
%sndiscordlink_boosts% | Boosts the linked member applied since they started boosting, counted from the boost announcements; 0 when not boosting |
%sndiscordlink_boost_days% | Whole days the linked member has been boosting; 0 when not boosting |
%sndiscordlink_linked_count% | The number of linked accounts across the whole network |
%sndiscordlink_boosters% | Linked accounts whose Discord member boosts |
%sndiscordlink_server_boosts% | Total boosts of the Discord server |
%sndiscordlink_server_boost_tier% | Boost tier (level) of the Discord server, 0 to 3 |
The words these placeholders return live in the status: block of lang/messages_en.yml. Edit them once there and every command, message and placeholder follows.
The global placeholders (linked_count, boosters, server_boosts, server_boost_tier) are served from a cache refreshed every sync.count-seconds, so they never query the database from the main thread.