deleteTopicFromCommunity

Introduction

Delete Topic

Community group only works with Ultimate Edition, you can see the pricing plan here.

Parameter details

Parameter name Parameter type Required Description
groupID string yes The group ID that will be deleted with some topics.
topicIDList string[] yes The list of IDs of the topic to delete.

Returned template

V2TimValueCallback<V2TimTopicOperationResult[]>

{
    code : number
    desc : string
    data : V2TimTopicOperationResult[]// The list of deleting results.
}

Return value details

name type description
code number Request result: Error codes. 0 means success.
desc string The description of the error. It will be empty if success.
data V2TimTopicOperationResult[] The list of deleting results.

Code example

import { TencentImSDKPlugin } from 'react-native-tim-js';


const deleteTopicFromCommunityRes = await TencentImSDKPlugin.v2TIMManager
    .getGroupManager()
    .deleteTopicFromCommunity(
        'groupID',
        []
    );
if (deleteTopicFromCommunityRes.code === 0) {

    deleteTopicFromCommunityRes.data?.forEach((element) => {
        element.errorCode;
        element.errorMessage;
        element.topicID;
    });
}

results matching ""

    No results matching ""