mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-04-19 03:00:07 -04:00
Finally got action example working correctly
This commit is contained in:
@@ -241,6 +241,7 @@ export interface CheckJson extends ICheck {
|
||||
* Can be `Action` or the `name` of any **named** `Action` in your subreddit's configuration
|
||||
*
|
||||
* @minItems 1
|
||||
* @examples [[{"kind": "comment", "content": "this is the content of the comment", "distinguish": true}, {"kind": "lock"}]]
|
||||
* */
|
||||
actions: Array<ActionTypeJson>
|
||||
}
|
||||
|
||||
@@ -454,6 +454,18 @@
|
||||
"properties": {
|
||||
"actions": {
|
||||
"description": "The `Actions` to run after the check is successfully triggered. ALL `Actions` will run in the order they are listed\n\n Can be `Action` or the `name` of any **named** `Action` in your subreddit's configuration",
|
||||
"examples": [
|
||||
[
|
||||
{
|
||||
"content": "this is the content of the comment",
|
||||
"distinguish": true,
|
||||
"kind": "comment"
|
||||
},
|
||||
{
|
||||
"kind": "lock"
|
||||
}
|
||||
]
|
||||
],
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
@@ -1406,6 +1418,18 @@
|
||||
"properties": {
|
||||
"actions": {
|
||||
"description": "The `Actions` to run after the check is successfully triggered. ALL `Actions` will run in the order they are listed\n\n Can be `Action` or the `name` of any **named** `Action` in your subreddit's configuration",
|
||||
"examples": [
|
||||
[
|
||||
{
|
||||
"content": "this is the content of the comment",
|
||||
"distinguish": true,
|
||||
"kind": "comment"
|
||||
},
|
||||
{
|
||||
"kind": "lock"
|
||||
}
|
||||
]
|
||||
],
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user