docs(discord-control): add runnable examples and smoke script
This commit is contained in:
68
docs/EXAMPLES.discord-control.json
Normal file
68
docs/EXAMPLES.discord-control.json
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"channel-private-create": {
|
||||
"action": "channel-private-create",
|
||||
"guildId": "123456789012345678",
|
||||
"name": "ops-private",
|
||||
"type": 0,
|
||||
"parentId": "234567890123456789",
|
||||
"topic": "ops only",
|
||||
"position": 3,
|
||||
"nsfw": false,
|
||||
"allowedUserIds": [
|
||||
"345678901234567890",
|
||||
"456789012345678901"
|
||||
],
|
||||
"allowedRoleIds": [
|
||||
"567890123456789012"
|
||||
],
|
||||
"allowMask": "67648",
|
||||
"denyEveryoneMask": "1024",
|
||||
"dryRun": true
|
||||
},
|
||||
"channel-private-update-merge": {
|
||||
"action": "channel-private-update",
|
||||
"guildId": "123456789012345678",
|
||||
"channelId": "678901234567890123",
|
||||
"mode": "merge",
|
||||
"addUserIds": [
|
||||
"345678901234567890"
|
||||
],
|
||||
"addRoleIds": [
|
||||
"567890123456789012"
|
||||
],
|
||||
"removeTargetIds": [
|
||||
"456789012345678901"
|
||||
],
|
||||
"allowMask": "67648",
|
||||
"denyMask": "0",
|
||||
"dryRun": true
|
||||
},
|
||||
"channel-private-update-replace": {
|
||||
"action": "channel-private-update",
|
||||
"guildId": "123456789012345678",
|
||||
"channelId": "678901234567890123",
|
||||
"mode": "replace",
|
||||
"addUserIds": [
|
||||
"345678901234567890"
|
||||
],
|
||||
"addRoleIds": [
|
||||
"567890123456789012"
|
||||
],
|
||||
"allowMask": "67648",
|
||||
"denyMask": "0",
|
||||
"dryRun": true
|
||||
},
|
||||
"member-list": {
|
||||
"action": "member-list",
|
||||
"guildId": "123456789012345678",
|
||||
"limit": 100,
|
||||
"after": "0",
|
||||
"fields": [
|
||||
"user.id",
|
||||
"user.username",
|
||||
"nick",
|
||||
"roles",
|
||||
"joined_at"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user