I’m using @amityco/js-sdk. Calling ChannelRepository.leaveChannel is throwing an error message: ASCInvalidParameterError: "channelId" must be a string
I’m passing a valid channel ID as a string to this method, e.g.:
await ChannelRepository.leaveChannel({
channelId: "63976c32da4a530d94c7f345"
});
This seems to happen with any valid channelId
.
Additionally, the documentation lists a different method to use to leave a channel (Channel Management - Amity Docs), ChannelMembershipRepository.leaveChannel
. However, that function doesn’t seem to exist.