Interface: PostInput
Defined in: areas/forums/posts.ts:122
A post to write, for startDiscussion and replyToPost.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
embed? | string[] | Absolute local paths to embed in the message, which names each by its file name (<img src="shot.png">). | areas/forums/posts.ts:128 |
fields? | Record<string, FieldValue> | Other post form fields by name ({"pinned": true} for a teacher). | areas/forums/posts.ts:132 |
files? | string[] | Absolute local paths to attach. | areas/forums/posts.ts:126 |
message | string | The message (HTML). | areas/forums/posts.ts:124 |
subscribe? | boolean | Subscribe to the discussion; Moodle's default when missing. | areas/forums/posts.ts:130 |