Skip to content

Commit 3f2d182

Browse files
zimegClaude
andcommitted
docs(methods): expand nested json in codeChannels examples to one key per line
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent 4bbbc3d commit 3f2d182

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎methods/src/code_channels/code_channels_set_commands.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
response = client.codeChannels_setCommands(
1313
channel_id="C123ABC456",
1414
commands=[
15-
{"name": "test", "description": "Run the test suite"},
16-
{"name": "diff", "description": "Show the current diff"},
15+
{
16+
"name": "test",
17+
"description": "Run the test suite",
18+
},
19+
{
20+
"name": "diff",
21+
"description": "Show the current diff",
22+
},
1723
],
1824
)
1925

‎methods/src/code_channels/code_channels_set_properties.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
channel_id="C123ABC456",
1414
code_channel={
1515
"context_bar_items": [
16-
{"key": "repo", "label": "acme/billing", "icon": "folder", "url": "https://github.com/acme/billing"},
16+
{
17+
"key": "repo",
18+
"label": "acme/billing",
19+
"icon": "folder",
20+
"url": "https://github.com/acme/billing",
21+
},
1722
]
1823
},
1924
)

0 commit comments

Comments
 (0)