Skip to content
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)
}

In order to create the embed object, visit https://leovoel.github.io/embed-visualizer/. Pastas must contain at least a content or an embedData property.

Deleting a Pasta

You can delete a pasta using /modpasta delete.