Skip to content

格式

typescript
NetConversation.SetStoredValue(key, value)

所属类: NetConversation

描述

设置当前NetConversation的key中存储的值。

参数

参数名类型描述
keystring键值名称
valuestring存储的值

返回值

类型描述
Promise<void>

代码示例

typescript
NetServer.on_converastion_connect = async (conv: NetConversation) => {
    await conv.SetStoredValue("key", "value");
}