-
Notifications
You must be signed in to change notification settings - Fork 2
qchat.role.QChatRoleModule
qchat/role.QChatRoleModule
-
EventEmitter
<QChatRoleEvents
>↳
QChatRoleModule
- eventNames
- listeners
- listenerCount
- emit
- on
- addListener
- once
- removeListener
- off
- removeAllListeners
- initEventHandlers
- createServerRole
- updateServerRole
- updateServerRolePriorities
- deleteServerRole
- getServerRoles
- addMembersToServerRole
- removeMembersFromServerRole
- getMembersFromServerRole
- addChannelRole
- updateChannelRole
- removeChannelRole
- getChannelRoles
- addMemberRole
- updateMemberRole
- removeMemberRole
- getMemberRoles
- getRolesByAccid
- getExistingServerRolesByAccids
- getExistingChannelRolesByServerRoleIds
- getExistingAccidsOfMemberRoles
- getExistingAccidsInServerRole
- checkPermission
- checkPermissions
- addChannelCategoryRole
- removeChannelCategoryRole
- updateChannelCategoryRole
- getChannelCategoryRolesPage
- addChannelCategoryMemberRole
- removeChannelCategoryMemberRole
- updateChannelCategoryMemberRole
- getChannelCategoryMemberRolesPage
▸ eventNames(): never
[]
Return an array listing the events for which the emitter has registered listeners.
never
[]
EventEmitter.eventNames
node_modules/eventemitter3/index.d.ts:15
▸ listeners<T
>(event
): (...args
: ArgumentMap
<QChatRoleEvents
>[Extract
<T
, never
>]) => void
[]
Return the listeners registered for a given event.
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
(...args
: ArgumentMap
<QChatRoleEvents
>[Extract
<T
, never
>]) => void
[]
EventEmitter.listeners
node_modules/eventemitter3/index.d.ts:20
▸ listenerCount(event
): number
Return the number of listeners listening to a given event.
Name | Type |
---|---|
event |
never |
number
EventEmitter.listenerCount
node_modules/eventemitter3/index.d.ts:27
▸ emit<T
>(event
, ...args
): boolean
Calls each of the listeners registered for a given event.
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
...args |
ArgumentMap <QChatRoleEvents >[Extract <T , never >] |
boolean
EventEmitter.emit
node_modules/eventemitter3/index.d.ts:32
▸ on<T
>(event
, fn
, context?
): QChatRoleModule
Add a listener for a given event.
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatRoleEvents >[Extract <T , never >]) => void
|
context? |
any |
EventEmitter.on
node_modules/eventemitter3/index.d.ts:40
▸ addListener<T
>(event
, fn
, context?
): QChatRoleModule
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatRoleEvents >[Extract <T , never >]) => void
|
context? |
any |
EventEmitter.addListener
node_modules/eventemitter3/index.d.ts:45
▸ once<T
>(event
, fn
, context?
): QChatRoleModule
Add a one-time listener for a given event.
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
fn |
(...args : ArgumentMap <QChatRoleEvents >[Extract <T , never >]) => void
|
context? |
any |
EventEmitter.once
node_modules/eventemitter3/index.d.ts:54
▸ removeListener<T
>(event
, fn?
, context?
, once?
): QChatRoleModule
Remove the listeners of a given event.
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
fn? |
(...args : ArgumentMap <QChatRoleEvents >[Extract <T , never >]) => void
|
context? |
any |
once? |
boolean |
EventEmitter.removeListener
node_modules/eventemitter3/index.d.ts:63
▸ off<T
>(event
, fn?
, context?
, once?
): QChatRoleModule
Name | Type |
---|---|
T |
extends never
|
Name | Type |
---|---|
event |
T |
fn? |
(...args : ArgumentMap <QChatRoleEvents >[Extract <T , never >]) => void
|
context? |
any |
once? |
boolean |
EventEmitter.off
node_modules/eventemitter3/index.d.ts:69
▸ removeAllListeners(event?
): QChatRoleModule
Remove all listeners, or those of the specified event.
Name | Type |
---|---|
event? |
undefined |
EventEmitter.removeAllListeners
node_modules/eventemitter3/index.d.ts:79
▸ initEventHandlers(): void
注册全局回调
void
ts/qchat/role.ts:77
▸ createServerRole(param
): Promise
<QChatCreateServerRoleResp
>
Fn
createServerRole(param: QChatCreateServerRoleParam)
Brief
在服务器中创建一个身份组
See
QChatCreateServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatCreateServerRoleParam |
参数见 |
Promise
<QChatCreateServerRoleResp
>
ts/qchat/role.ts:84
▸ updateServerRole(param
): Promise
<QChatUpdateServerRoleResp
>
Fn
updateServerRole(param: QChatUpdateServerRoleParam)
Brief
更新服务器中指定身份组
See
QChatUpdateServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatUpdateServerRoleParam |
参数见 |
Promise
<QChatUpdateServerRoleResp
>
ts/qchat/role.ts:98
▸ updateServerRolePriorities(param
): Promise
<QChatGetServerRolesResp
>
Fn
updateServerRolePriorities(param: QChatUpdateServerRolePrioritiesParam)
Brief
批量更新服务器身份组优先级,如果具备修改身份组优先级权限,则服务器会应用您传递的参数中身份组优先级列表所有的内容 如在 UI 展示中,允许拖拽对身份组优先级进行排序,则在排序完成后将最终的排序列表传递到参数中即可。
See
QChatUpdateServerRolePrioritiesParam
Name | Type | Description |
---|---|---|
param |
QChatUpdateServerRolePrioritiesParam |
参数见 |
Promise
<QChatGetServerRolesResp
>
ts/qchat/role.ts:113
▸ deleteServerRole(param
): Promise
<QChatBaseResp
>
Fn
deleteServerRole(param: QChatDeleteServerRoleParam)
Brief
从服务器中删除指定身份组
See
QChatDeleteServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatDeleteServerRoleParam |
参数见 |
Promise
<QChatBaseResp
>
ts/qchat/role.ts:127
▸ getServerRoles(param
): Promise
<QChatGetServerRolesResp
>
Fn
getServerRoles(param: QChatGetServerRolesParam)
Brief
获取指定服务器下已创建的身份组列表
See
QChatGetServerRolesParam
Name | Type | Description |
---|---|---|
param |
QChatGetServerRolesParam |
参数见 |
Promise
<QChatGetServerRolesResp
>
ts/qchat/role.ts:141
▸ addMembersToServerRole(param
): Promise
<QChatAddMembersToServerRoleResp
>
Fn
addMembersToServerRole(param: QChatAddMembersToServerRoleParam)
Brief
添加部分成员到服务器指定的身份组中
See
QChatAddMembersToServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatAddMembersToServerRoleParam |
参数见 |
Promise
<QChatAddMembersToServerRoleResp
>
ts/qchat/role.ts:155
▸ removeMembersFromServerRole(param
): Promise
<QChatAddMembersToServerRoleResp
>
Fn
removeMembersFromServerRole(param: QChatRemoveMembersFromServerRoleParam)
Brief
从服务器指定身份组移除部分成员
See
QChatRemoveMembersFromServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatRemoveMembersFromServerRoleParam |
参数见 |
Promise
<QChatAddMembersToServerRoleResp
>
ts/qchat/role.ts:169
▸ getMembersFromServerRole(param
): Promise
<QChatGetMembersFromServerRoleResp
>
Fn
getMembersFromServerRole(param: QChatGetMembersFromServerRoleParam)
Brief
分页从服务器指定身份组中查询成员列表
See
QChatGetMembersFromServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatGetMembersFromServerRoleParam |
参数见 |
Promise
<QChatGetMembersFromServerRoleResp
>
ts/qchat/role.ts:183
▸ addChannelRole(param
): Promise
<QChatAddChannelRoleResp
>
Fn
addChannelRole(param: QChatAddChannelRoleParam)
Brief
添加一个身份组到频道
See
QChatAddChannelRoleParam
Name | Type | Description |
---|---|---|
param |
QChatAddChannelRoleParam |
参数见 |
Promise
<QChatAddChannelRoleResp
>
ts/qchat/role.ts:197
▸ updateChannelRole(param
): Promise
<QChatAddChannelRoleResp
>
Fn
updateChannelRole(param: QChatUpdateChannelRoleParam)
Brief
更新频道中指定身份组的信息
See
QChatUpdateChannelRoleParam
Name | Type | Description |
---|---|---|
param |
QChatUpdateChannelRoleParam |
参数见 |
Promise
<QChatAddChannelRoleResp
>
ts/qchat/role.ts:211
▸ removeChannelRole(param
): Promise
<QChatBaseResp
>
Fn
removeChannelRole(param: QChatRemoveChannelRoleParam)
Brief
从频道中移除指定身份组
See
QChatRemoveChannelRoleParam
Name | Type | Description |
---|---|---|
param |
QChatRemoveChannelRoleParam |
参数见 |
Promise
<QChatBaseResp
>
ts/qchat/role.ts:225
▸ getChannelRoles(param
): Promise
<QChatGetChannelRolesResp
>
Fn
getChannelRoles(param: QChatGetChannelRolesParam)
Brief
获取频道下所有已分配的身份组信息
See
QChatGetChannelRolesParam
Name | Type | Description |
---|---|---|
param |
QChatGetChannelRolesParam |
参数见 |
Promise
<QChatGetChannelRolesResp
>
ts/qchat/role.ts:239
▸ addMemberRole(param
): Promise
<QChatAddMemberRoleResp
>
Fn
addMemberRole(param: QChatAddMemberRoleParam)
Brief
在频道中添加针对指定人的特殊权限配置
See
QChatAddMemberRoleParam
Name | Type | Description |
---|---|---|
param |
QChatAddMemberRoleParam |
参数见 |
Promise
<QChatAddMemberRoleResp
>
ts/qchat/role.ts:253
▸ updateMemberRole(param
): Promise
<QChatAddMemberRoleResp
>
Fn
updateMemberRole(param: QChatUpdateMemberRoleParam)
Brief
更新频道中指定人的特殊权限配置
See
QChatUpdateMemberRoleParam
Name | Type | Description |
---|---|---|
param |
QChatUpdateMemberRoleParam |
参数见 |
Promise
<QChatAddMemberRoleResp
>
ts/qchat/role.ts:267
▸ removeMemberRole(param
): Promise
<QChatBaseResp
>
Fn
removeMemberRole(param: QChatRemoveMemberRoleParam)
Brief
从频道中移除指定人的特殊权限配置
See
QChatRemoveMemberRoleParam
Name | Type | Description |
---|---|---|
param |
QChatRemoveMemberRoleParam |
参数见 |
Promise
<QChatBaseResp
>
ts/qchat/role.ts:281
▸ getMemberRoles(param
): Promise
<QChatGetMemberRolesResp
>
Fn
getMemberRoles(param: QChatGetMemberRolesParam)
Brief
分页获取频道下所有针对人的特殊权限配置列表
See
QChatGetMemberRolesParam
Name | Type | Description |
---|---|---|
param |
QChatGetMemberRolesParam |
参数见 |
Promise
<QChatGetMemberRolesResp
>
ts/qchat/role.ts:295
▸ getRolesByAccid(param
): Promise
<QChatGetServerRolesResp
>
Fn
getRolesByAccid(param: QChatGetRolesByAccidParam)
Brief
根据用户 ID 获取其已经分配的身份组列表
See
QChatGetRolesByAccidParam
Name | Type | Description |
---|---|---|
param |
QChatGetRolesByAccidParam |
参数见 |
Promise
<QChatGetServerRolesResp
>
ts/qchat/role.ts:309
▸ getExistingServerRolesByAccids(param
): Promise
<QChatGetExistingServerRolesByAccidsResp
>
Fn
getExistingServerRolesByAccids(param: QChatGetExistingServerRolesByAccidsParam)
Brief
根据一组用户列表查询该列表下所有用户的身份组列表信息
See
QChatGetExistingServerRolesByAccidsParam
Name | Type | Description |
---|---|---|
param |
QChatGetExistingServerRolesByAccidsParam |
参数见 |
Promise
<QChatGetExistingServerRolesByAccidsResp
>
ts/qchat/role.ts:323
▸ getExistingChannelRolesByServerRoleIds(param
): Promise
<QChatGetChannelRolesResp
>
Fn
getExistingChannelRolesByServerRoleIds(param: QChatGetExistingChannelRolesByServerRoleIdsParam)
Brief
根据一组身份组列表查询频道中已经存在的身份组
See
QChatGetExistingChannelRolesByServerRoleIdsParam
Name | Type | Description |
---|---|---|
param |
QChatGetExistingChannelRolesByServerRoleIdsParam |
参数见 |
Promise
<QChatGetChannelRolesResp
>
ts/qchat/role.ts:337
▸ getExistingAccidsOfMemberRoles(param
): Promise
<QChatGetExistingAccidsOfMemberRolesResp
>
Fn
getExistingAccidsOfMemberRoles(param: QChatGetExistingAccidsOfMemberRolesParam)
Brief
根据一组用户 ID 查询指定频道下的定制权限信息
See
QChatGetExistingAccidsOfMemberRolesParam
Name | Type | Description |
---|---|---|
param |
QChatGetExistingAccidsOfMemberRolesParam |
参数见 |
Promise
<QChatGetExistingAccidsOfMemberRolesResp
>
ts/qchat/role.ts:351
▸ getExistingAccidsInServerRole(param
): Promise
<QChatGetExistingAccidsOfMemberRolesResp
>
void GetExistingAccidsInServerRole(const QChatGetExistingAccidsInServerRoleParam& param)
Brief
查询服务器某身份组是否包含指定成员
See
QChatGetExistingAccidsInServerRoleParam
Name | Type | Description |
---|---|---|
param |
QChatGetExistingAccidsInServerRoleParam |
参数见 |
Promise
<QChatGetExistingAccidsOfMemberRolesResp
>
ts/qchat/role.ts:365
▸ checkPermission(param
): Promise
<QChatCheckPermissionResp
>
Fn
checkPermission(param: QChatCheckPermissionParam)
Brief
查询当前登录用户是否拥有特定权限
See
QChatGetRolesByAccidParam
Name | Type | Description |
---|---|---|
param |
QChatCheckPermissionParam |
参数见 |
Promise
<QChatCheckPermissionResp
>
ts/qchat/role.ts:379
▸ checkPermissions(param
): Promise
<QChatCheckPermissionsResp
>
Fn
checkPermissions(param: QChatCheckPermissionsParam)
Brief
查询当前登录用户是否拥有特定权限
See
QChatGetRolesByAccidParam
Name | Type | Description |
---|---|---|
param |
QChatCheckPermissionsParam |
参数见 |
Promise
<QChatCheckPermissionsResp
>
ts/qchat/role.ts:393
▸ addChannelCategoryRole(param
): Promise
<QChatAddChannelCategoryRoleResp
>
Fn
addChannelCategoryRole(param: QChatAddChannelCategoryRoleParam)
Brief
添加一个身份组到频道分组
See
QChatAddChannelCategoryRoleParam
Name | Type | Description |
---|---|---|
param |
QChatAddChannelCategoryRoleParam |
参数见 |
Promise
<QChatAddChannelCategoryRoleResp
>
ts/qchat/role.ts:407
▸ removeChannelCategoryRole(param
): Promise
<QChatBaseResp
>
Fn
removeChannelCategoryRole(param: QChatRemoveChannelCategoryRoleParam)
Brief
从频道分组中移除身份组
See
QChatRemoveChannelCategoryRoleParam
Name | Type | Description |
---|---|---|
param |
QChatRemoveChannelCategoryRoleParam |
参数见 |
Promise
<QChatBaseResp
>
ts/qchat/role.ts:421
▸ updateChannelCategoryRole(param
): Promise
<QChatAddChannelCategoryRoleResp
>
Fn
updateChannelCategoryRole(param: QChatUpdateChannelCategoryRoleParam)
Brief
更新频道分组中的身份组
See
QChatUpdateChannelCategoryRoleParam
Name | Type | Description |
---|---|---|
param |
QChatUpdateChannelCategoryRoleParam |
参数见 |
Promise
<QChatAddChannelCategoryRoleResp
>
ts/qchat/role.ts:435
▸ getChannelCategoryRolesPage(param
): Promise
<QChatGetChannelCategoryRolesPageResp
>
Fn
getChannelCategoryRolesPage(param: QChatGetChannelCategoryRolesPageParam)
Brief
分页获取频道分组下的身份组列表
See
QChatGetChannelCategoryRolesPageParam
Name | Type | Description |
---|---|---|
param |
QChatGetChannelCategoryRolesPageParam |
参数见 |
Promise
<QChatGetChannelCategoryRolesPageResp
>
ts/qchat/role.ts:449
▸ addChannelCategoryMemberRole(param
): Promise
<QChatAddChannelCategoryMemberRoleResp
>
Fn
addChannelCategoryMemberRole(param: QChatAddChannelCategoryMemberRoleParam)
Brief
定制指定成员在频道分组中的权限
See
QChatAddChannelCategoryMemberRoleParam
Name | Type | Description |
---|---|---|
param |
QChatAddChannelCategoryMemberRoleParam |
参数见 |
Promise
<QChatAddChannelCategoryMemberRoleResp
>
ts/qchat/role.ts:463
▸ removeChannelCategoryMemberRole(param
): Promise
<QChatBaseResp
>
Fn
removeChannelCategoryMemberRole(param: QChatRemoveChannelCategoryMemberRoleParam)
Brief
取消指定成员在频道分组中的权限
See
QChatRemoveChannelCategoryMemberRoleParam
Name | Type | Description |
---|---|---|
param |
QChatRemoveChannelCategoryMemberRoleParam |
参数见 |
Promise
<QChatBaseResp
>
ts/qchat/role.ts:477
▸ updateChannelCategoryMemberRole(param
): Promise
<QChatAddChannelCategoryMemberRoleResp
>
Fn
updateChannelCategoryMemberRole(param: QChatUpdateChannelCategoryMemberRoleParam)
Brief
更新指定成员在频道分组中的权限
See
QChatUpdateChannelCategoryMemberRoleParam
Name | Type | Description |
---|---|---|
param |
QChatUpdateChannelCategoryMemberRoleParam |
参数见 |
Promise
<QChatAddChannelCategoryMemberRoleResp
>
ts/qchat/role.ts:491
▸ getChannelCategoryMemberRolesPage(param
): Promise
<QChatGetChannelCategoryMemberRolesPageResp
>
Fn
getChannelCategoryMemberRolesPage(param: QChatGetChannelCategoryMemberRolesPageParam)
Brief
分页获取频道分组下的成员权限列表
See
QChatGetChannelCategoryMemberRolesPageParam
Name | Type | Description |
---|---|---|
param |
QChatGetChannelCategoryMemberRolesPageParam |
参数见 |
Promise
<QChatGetChannelCategoryMemberRolesPageResp
>
ts/qchat/role.ts:505
• instance: any
ts/qchat/role.ts:71
• new QChatRoleModule()
EventEmitter<QChatRoleEvents>.constructor
ts/qchat/role.ts:72
- chatroom/chatroom
- chatroom_def/chatroom_def
- nim/client
- nim/data_sync
- nim/friend
- nim/global
- nim/msglog
- nim/nos
- nim/online_session
- nim/pass_through_proxy
- nim/plugin
- nim/session
- nim/subscribe_event
- nim/super_team
- nim/sysmsg
- nim/talk
- nim/talkex
- nim/team
- nim/tool
- nim/user
- nim_def/client_def
- nim_def/data_sync_def
- nim_def/doc_trans_def
- nim_def/friend_def
- nim_def/global_def
- nim_def/msglog_def
- nim_def/nos_def
- nim_def/online_session_def
- nim_def/pass_through_proxy_def
- nim_def/plugin_def
- nim_def/session_def
- nim_def/subscribe_event_def
- nim_def/super_team_def
- nim_def/sysmsg_def
- nim_def/talk_def
- nim_def/talkex_def
- nim_def/team_def
- nim_def/tool_def
- nim_def/user_def
- node-nim
- qchat/attachment
- qchat/channel
- qchat/channel_category
- qchat/instance
- qchat/message
- qchat/role
- qchat/server
- qchat/system_notification
- qchat_def/attachment_def
- qchat_def/channel_def
- qchat_def/instance_def
- qchat_def/message_def
- qchat_def/public_def
- qchat_def/role_def
- qchat_def/server_def
- qchat_def/system_notification_def