actions/community

Community Actions Channel

Parameters:
Name Type Description
config Object
services Object
emit function
Returns:
Type
function

Methods

(inner) addChatMessageReaction(params) → {Object}

add a reaction to a chat message

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

assetid String
Returns:

published reaction

Type
Object

(inner) editChatMessage(params) → {Object}

edit a chat message

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

text String
Returns:

updated message

Type
Object

(inner) listUsersByMessageReaction(params) → {Array}

list users who reacted to the provided message

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

assetid String
Returns:

list of users

Type
Array

(inner) off(params) → {Object}

un-subscribe to realtime state changes

Parameters:
Name Type Description
params Object
Properties
Name Type Description
topic String
path String
Returns:

initial state

Type
Object

(inner) on(params) → {Object}

subscribe to realtime state changes

Parameters:
Name Type Description
params Object
Properties
Name Type Description
topic String
path String
Returns:

initial state

Type
Object

(inner) publishChatMessage(params) → {Object}

publish a chat message to a room

Parameters:
Name Type Description
params Object
Properties
Name Type Description
text String
roomid String
Returns:

published message

Type
Object

(inner) removeChatMessage(params) → {Object}

remove a chat message

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

Returns:

removed message

Type
Object

(inner) removeChatMessageReaction(params) → {Object}

remove to a chat message reaction

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

assetid String
Returns:

removed reaction

Type
Object

(inner) replyToChatMessage(params) → {Object}

reply to a chat message

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

text String
Returns:

published message

Type
Object

(inner) searchChatGifs(params) → {Array}

search available chat gifs

Parameters:
Name Type Description
params Object
Properties
Name Type Description
term String
Returns:

list of gifs

Type
Array

(inner) setNotificationAsRead(params) → {Object}

set a notification as read

Parameters:
Name Type Description
params Object
Properties
Name Type Description
messageid String

unique identifier

Returns:

updated notification

Type
Object