refactor: add categoryId when creating a community channel

This commit is contained in:
Richard Ramos 2022-01-31 09:31:20 -04:00 committed by saledjenic
parent c0d302c232
commit 62775034ed
1 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,8 @@ proc editCommunity*(
proc createCommunityChannel*(
communityId: string,
name: string,
description: string
description: string,
categoryId: string
): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("createCommunityChat".prefix, %*[
communityId,
@ -103,7 +104,8 @@ proc createCommunityChannel*(
# "image_type": 1 # 1 is a raw payload
# }
# ]
}
},
"category_id": categoryId
}])
proc editCommunityChannel*(