Class: ChatEndpoint
Extends
Methods
banUser()
banUser(
channel
,target
,duration
?):Promise
<GenericApiResponse
<null
>>
Parameters
Parameter | Type |
---|---|
channel | string |
target | string |
duration ? | number |
Returns
Promise
<GenericApiResponse
<null
>>
endpoints/chat/chat.endpoint.ts:140
deleteMessage()
deleteMessage(
chatroomId
,messageId
):Promise
<GenericApiResponse
<null
>>
Parameters
Parameter | Type |
---|---|
chatroomId | string | number |
messageId | string |
Returns
Promise
<GenericApiResponse
<null
>>
endpoints/chat/chat.endpoint.ts:66
getMessageHistory()
getMessageHistory(
channelId
):Promise
<GenericApiResponse
<Messages
>>
Parameters
Parameter | Type |
---|---|
channelId | number |
Returns
Promise
<GenericApiResponse
<Messages
>>
endpoints/chat/chat.endpoint.ts:128
pinMessage()
pinMessage(
channel
,messageId
):Promise
<GenericApiResponse
<null
>>
Parameters
Parameter | Type |
---|---|
channel | string |
messageId | string |
Returns
Promise
<GenericApiResponse
<null
>>
endpoints/chat/chat.endpoint.ts:83
sendMessage()
sendMessage(
chatroomId
,message
,replyTo
?):Promise
<SendMessageResponse
>
Parameters
Parameter | Type |
---|---|
chatroomId | string | number |
message | string |
replyTo ? | ChatMessageReference |
Returns
Promise
<SendMessageResponse
>
endpoints/chat/chat.endpoint.ts:25
unbanUser()
unbanUser(
channel
,target
):Promise
<GenericApiResponse
<null
>>
Parameters
Parameter | Type |
---|---|
channel | string |
target | string |
Returns
Promise
<GenericApiResponse
<null
>>
endpoints/chat/chat.endpoint.ts:173
unpinMessage()
unpinMessage(
channel
):Promise
<GenericApiResponse
<null
>>
Parameters
Parameter | Type |
---|---|
channel | string |
Returns
Promise
<GenericApiResponse
<null
>>
endpoints/chat/chat.endpoint.ts:111
Generated using typedoc-plugin-markdown and TypeDoc