Constructor
new At(uin, uid)
构造一个 qq号 为 uin,uid 为 uid 的 @群聊成员 消息元素。
Parameters:
Properties| Name | Type | Description |
|---|---|---|
uin | String | 群聊成员的 uin。 |
uid | String | 群聊成员的 uid。 |
| Name | Type | Description |
|---|---|---|
#uin | String | 群聊成员的 qq号。 |
#uid | String | 群聊成员的 uid。 |
- Source
Methods
getUid() → {String}
返回该消息元素的 #uid 属性。
- Source
Returns:
该消息元素的 #uid 属性。
- Type:
- String
getUin() → {String}
返回该消息元素的 #uin 属性。
- Source
Returns:
该消息元素的 #uin 属性。
- Type:
- String
(async) toElement() → {Native}
构造并返回该消息元素所对应的 element 对象。
- Source
Returns:
该消息元素所对应的 element 对象。
- Type:
- Native
(static) fromUid(uid) → {At}
通过 uid 来构造一个 @群聊成员 元素。
若不存在,则会返回 null。
Parameters:
| Name | Type | Description |
|---|---|---|
uid | String | 群聊成员的 uid。 |
- Source
Returns:
构造出的消息元素。
- Type:
- At
(static) fromUin(uin) → {At}
通过 qq号 来构造一个 @群聊成员 元素。
若不存在,则会返回 null。
Parameters:
| Name | Type | Description |
|---|---|---|
uin | String | 群聊成员的 qq号。 |
- Source
Returns:
构造出的消息元素。
- Type:
- At
(static) getElementType() → {Number}
返回该消息元素所对应的 elementType,值为 1。
- Source
Returns:
该消息元素所对应的 elementType,值为 1。
- Type:
- Number