格式
typescript
NetConversation.SetStoredValue(key, value)所属类: NetConversation
描述
设置当前NetConversation的key中存储的值。
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| key | string | 键值名称 |
| value | string | 存储的值 |
返回值
| 类型 | 描述 |
|---|---|
Promise<void> |
代码示例
typescript
NetServer.on_converastion_connect = async (conv: NetConversation) => {
await conv.SetStoredValue("key", "value");
}