/user/deleteGroup

To delete a specific group of the user. Has 2 main requirements:

  1. userId

  2. groupId

  3. npcId

const { data, error } = await backend.post('/user/deleteGroup', { 
    userId: '<USER ID>',
    groupId: '<GROUP ID>',
    npcId: '<NPC ID>'
}).then(res => res?.data).catch(e => { });

This will remove the user from a certain group they are a part of. If successful, returns a basic object with success equal to true.

Last updated