/user/listGroups
Returns a list of groups the user is a part of. Has 1 main requirement:
userId
const { data } = await backend.post('/user/listGroups', {
userId: '<USER ID>',
}).then(res => res?.data).catch(e => { });
This endpoint returns an array of groups the user is part of. Each group element has all the important information related to the group, including the group name
, groupId
, imageUrl
, lastMessage
, lastUpdated
and npcId
Last updated