What you can put in a theme or a plugin, with an example of each.
| To change colours | A theme file. |
| Anything else | A plugin, written in PSL. |
One file, themes/harbour.json. Every line here is required except description.
{
"id": "harbour",
"name": "Harbour",
"description": "Blue-grey, easy on the eyes.",
"version": "1.0.0",
"authors": ["Your name"],
"palette": {
"bg": "#16212b",
"secondary": "#121b24",
"tertiary": "#0d141b",
"floating": "#1f2d3a",
"raised": "#1f2d3a",
"text": "#e3ecf2",
"muted": "#8fa3b3",
"accent": "#5fb3c9",
"link": "#8fc7ff",
"border": "#2a3b4a"
}
}
id must be the same as the file name.version can be anything. Change it when you change a colour, so phones know to update.#rrggbb. What each of the ten is used for is in the guide."background": {
"url": "https://example.com/harbour.jpg",
"blur": 6,
"dim": 0.5
}
Optional; add it beside palette. url must start with https://. blur goes from 0 (sharp) to 20. dim goes from 0 to 0.9 and is how much of your bg colour is laid over the picture so messages stay readable. Shows on iPhone.
Plugins are written in PSL, the Pillar Smart Language: a list of plain lines that can only name what's in the PCC. Pillar reads every line, checks it, and carries it out. A plugin never runs code of its own, so it can't reach the internet, your account or anything else Pillar doesn't allow.
One file, member-count.psl:
# Lines starting with # are notes for people.
plugin "Member Count"
about "Shows a server's online and total member counts next to its name."
version 2.0.0
by "Your name"
choice show "Next to the server name"
option show "both" "Online and members" default
option show "off" "Off"
switch chatHeader "Discord's member count in the chat header" on
describe chatHeader "Turns on Discord's own count under the channel name"
show chat-header-member-count if $chatHeader
add " · {server.online} online / {server.members}" after {server.name} if $show is "both"
| plugin "Name" | Its name. Required. |
| about "…" | One or two sentences, shown in the store. |
| version 1.0.0 | Required. Raise it when you change the plugin, so devices update. |
| by "Name" | Credit. Required; repeat for several authors. |
| note "…" | Something worth knowing, shown on its page. |
| switch key "Label" on | A switch, on or off to start with. |
| choice key "Label" | A list to pick from. Add its options below it. |
| option key value "Label" default | One option of a choice. The value is "text" or a number. Mark one default. |
| button key "Label" | A button. Say what it does with on key do …. |
| describe key "…" | A line of explanation under a setting. |
| hide part | Stops that part of Discord showing. Parts. |
| show part | Switches on something Discord has but keeps off. |
| text effect value | Changes Discord's text: font, size, colour and more. Effects. |
| add "…" after {data} | Adds text after a piece of data wherever Discord shows it. The text can include more data. |
| on button do action | Pillar does the action when the button is pressed, and says what happened. |
A value can be a setting: text size $scale uses whatever the scale choice is set to.
End any line with if to apply it only while settings say so:
hide gift-button if $gift
text size 1.2 if not $compact
add " ({server.members})" after {server.name} if $show is "members" and $counts
Changing a setting applies straight away.
The store's check reads your plugin and says what's wrong, by line: an unknown part, a font Pillar doesn't have, a setting that doesn't exist. Nothing is listed until every line passes.
The Pillar Classifier Collection: everything a plugin can name. Each entry is built into Pillar and reviewed once, for every plugin to use. Something missing? Ask for it on the store; adding to the PCC is how Pillar grows.
| hide gift-button | The gift button in the message box. iPhone, Mac, Windows |
| hide nameplates | Decorative backgrounds behind names in lists. iPhone, Mac, Windows |
| hide avatar-decorations | Frames and effects around profile pictures. iPhone, Mac, Windows |
| hide profile-effects | Animated effects on profiles. iPhone |
| hide server-tags | Server tags next to names. iPhone, Mac, Windows |
| hide typing-indicator | The "someone is typing" line. iPhone, Mac, Windows |
| show chat-header-member-count | Discord's own member count under the channel name, normally off. iPhone |
| hide shop-button | The shop button on your own profile tab. iPhone |
| hide nitro-upsells | Nitro offers around the app. iPhone |
| hide orbs-balance | The Orbs balance. iPhone |
| hide wishlists | Wishlist suggestions on profiles. iPhone |
| hide tips | Pop-up tips that point at new features. iPhone |
| hide new-badges | "NEW" labels on features. iPhone |
| hide chat-nudges | Banners above the message box. iPhone |
| hide sticker-greeting | The wave sticker suggestion in a new direct message. iPhone |
| hide voice-message-button | The microphone button in the message box. iPhone |
| hide jump-to-present | The button that jumps to the newest message. iPhone |
| hide new-messages-bar | The "new messages since" bar. iPhone |
| hide unread-bars | Unread pills at the edges of lists. iPhone, Mac, Windows |
| hide create-server-button | The add-a-server button. iPhone, Mac, Windows |
| hide activity-status | "Playing…" lines in member lists. iPhone, Mac, Windows |
| hide activity-cards | Game and music cards on profiles. iPhone |
| hide leaderboard-badges | Leaderboard badges in member lists. iPhone |
| hide profile-badges | Badges on profiles. iPhone |
| hide custom-status | Custom statuses on profiles. iPhone |
| hide profile-connections | Connected accounts on profiles. iPhone |
| hide profile-mutuals | Mutual friends and servers on profiles. iPhone |
| hide join-dates | Join dates on profiles. iPhone |
| text font | The typeface. Code stays monospaced and bold stays bold.. iPhone, Mac, Windows |
| text size | Scales text, e.g. 1.1 for 10% bigger (0.5 to 2). iPhone, Mac, Windows |
| text color | Colour for text that has none of its own. iPhone, Mac, Windows |
| text weight | normal or bold. iPhone |
| text case | normal, upper or lower. iPhone |
| text spacing | Letter spacing, -2 to 4. iPhone |
Fonts: System, Avenir Next, Futura, Gill Sans, Georgia, Baskerville, Chalkboard SE, Menlo, American Typewriter, Courier New, Helvetica Neue, Palatino, Times New Roman, Verdana, Trebuchet MS, Segoe UI.
| {server.name} | The name of the server you're looking at. iPhone |
| {server.members} | Its member count, like 12,345. iPhone |
| {server.online} | How many of them are online. iPhone |
| mark-all-read | Marks every unread channel as read. iPhone, Mac, Windows |
Every plugin shows what it does and what it can see before anyone installs it. You don't write these: Pillar works them out from your plugin's lines, so they always match what it does.
| No code | On every plugin: it's PSL, and Pillar carries it out. |
| Hides or shows parts of Discord | It uses hide or show. |
| Changes how text looks | It uses text, without reading what the text says. |
| Reads from Discord: … | Which data it uses in added text, in plain words. |
| Acts only when you press its button | It has a button that does something in Discord. |
| Nothing leaves your device | On every plugin: PSL can't connect to anything. |
There is no way to get the user's token, and nothing for sending messages or acting as the user. Plugins that work around that aren't listed.