Methods
create
- create(channelId: string, data: RESTPostAPIChannelWebhookJSONBody): Promise<APIWebhook>
-
Parameters
-
channelId: string
-
data: RESTPostAPIChannelWebhookJSONBody
Returns Promise<APIWebhook>
delete
- delete(webhookId: string, token?: string): Promise<never>
-
Parameters
-
webhookId: string
-
Optional token: string
Returns Promise<never>
deleteMessage
- deleteMessage(webhookId: string, token: string, messageId: string): Promise<null>
-
Parameters
-
webhookId: string
-
token: string
-
messageId: string
Returns Promise<null>
editMessage
- editMessage(webhookId: string, token: string, messageId: string, data: MessageTypes): Promise<APIMessage>
-
Parameters
-
webhookId: string
-
token: string
-
messageId: string
-
Returns Promise<APIMessage>
New message
get
- get(webhookId: string, token: string): Promise<APIWebhook>
-
Parameters
-
webhookId: string
-
token: string
Returns Promise<APIWebhook>
send
- send(webhookId: string, token: string, data: MessageTypes): Promise<APIMessage>
-
Parameters
-
webhookId: string
-
token: string
-
Returns Promise<APIMessage>
Webhook resource