refactor: add categoryId when creating a community channel
This commit is contained in:
parent
c0d302c232
commit
62775034ed
|
@ -83,7 +83,8 @@ proc editCommunity*(
|
||||||
proc createCommunityChannel*(
|
proc createCommunityChannel*(
|
||||||
communityId: string,
|
communityId: string,
|
||||||
name: string,
|
name: string,
|
||||||
description: string
|
description: string,
|
||||||
|
categoryId: string
|
||||||
): RpcResponse[JsonNode] {.raises: [Exception].} =
|
): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
result = callPrivateRPC("createCommunityChat".prefix, %*[
|
result = callPrivateRPC("createCommunityChat".prefix, %*[
|
||||||
communityId,
|
communityId,
|
||||||
|
@ -103,7 +104,8 @@ proc createCommunityChannel*(
|
||||||
# "image_type": 1 # 1 is a raw payload
|
# "image_type": 1 # 1 is a raw payload
|
||||||
# }
|
# }
|
||||||
# ]
|
# ]
|
||||||
}
|
},
|
||||||
|
"category_id": categoryId
|
||||||
}])
|
}])
|
||||||
|
|
||||||
proc editCommunityChannel*(
|
proc editCommunityChannel*(
|
||||||
|
|
Loading…
Reference in New Issue