Friendship
发送,接受好友请求的Class
Last updated
Was this helpful?
发送,接受好友请求的Class
Last updated
Was this helpful?
发送,接受好友请求的Class,有以下三种:
发送好友请求
在 Friend event 中收到好友请求
在 Friend event 中确认好友请求
Kind: global class
instance
⇒ Promise <void>
⇒ string
⇒ Contact
⇒ FriendshipType
static
⇒ Promise <void>
Promise <void>
通过好友请求
string
获取对方发送好友请求的验证信息。
Contact
获取发送好友请求的联系人。
FriendshipType
返回好友请求的类型。
FriendshipType 在这里是enum:
FriendshipType.Unknown
FriendshipType.Confirm
FriendshipType.Receive
FriendshipType.Verify
Deprecated
Promise <void>
发送好友请求给contact
发送的内容是 hello
.
最佳实践:每分钟加1次,如果发送的过于频繁,你可能会被封号,每天能添加的好友数量是有上限的。
Param
Type
Description
contact
Contact
需要发送好友请求的联系人
hello
string
发送好友请求的内容
Example
Kind: instance method of Example
Kind: instance method of Example (If request content is `ding`, then accept the friendship)
Kind: instance method of Example
Kind: instance method of Example (如果用户发送好友请求的内容是 `ding`, 机器人会自动通过好友请求)
请使用 替换
Kind: static method of
Kind: static method of