refactor(community): add function to get pending membership requests (#164)
This commit is contained in:
parent
a10c32c7f4
commit
e9342e73c6
|
@ -23,6 +23,9 @@ proc requestToJoinCommunity*(communityId: string, ensName: string): RpcResponse[
|
|||
proc myPendingRequestsToJoin*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
result = callPrivateRPC("myPendingRequestsToJoin".prefix)
|
||||
|
||||
proc pendingRequestsToJoinForCommunity*(communityId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
result = callPrivateRPC("pendingRequestsToJoinForCommunity".prefix, %*[communityId])
|
||||
|
||||
proc leaveCommunity*(communityId: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
result = callPrivateRPC("leaveCommunity".prefix, %*[communityId])
|
||||
|
||||
|
|
Loading…
Reference in New Issue