You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kneemund edited this page Jun 10, 2022
·
6 revisions
Creating a Pasta
You can create a pasta using /modpasta create, where the alias argument is used to reference it. In order to fill it with content, you must use the /modpasta update command.
Reading a Pasta
You can display the raw JSON data of a pasta using /modpasta read.
Updating a Pasta
You can update a pasta using /modpasta update, where path is the path to the object or value which you want to replace (separated using dots, e.g. embedData.author.name) and value is the new value (must be valid JSON). Not providing a value will delete the JSON key, and updating a non-existent key will automatically create it.
A pasta can contain the following data:
{
"alias": "", // alias used to view and manage the pasta (required)"content": "", // content of the message (required unless "embedData" is specified)"embedData": {}, // embed constructor (required, unless "content" is specified)"attachmentURLs": [""] // attachment URLs (optional)
}
{ "alias": "", // alias used to view and manage the pasta (required) "content": "", // content of the message (required unless "embedData" is specified) "embedData": {}, // embed constructor (required, unless "content" is specified) "attachmentURLs": [""] // attachment URLs (optional) }