Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Add updateResponse callback to replyAndUpdate type
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomWright committed Jan 29, 2018
1 parent 040ced1 commit 2ec7fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Botkit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ declare namespace botkit {
title_link?: string;
ts?: string;
}
interface SlackUpdateMessageCallback {
(newResponse: string | SlackMessage, cb?: (err: Error) => void): void
}
interface SlackBot extends Bot<SlackSpawnConfiguration, SlackMessage> {
readonly api: SlackWebAPI;
configureIncomingWebhook(config: { url: string; }): this;
Expand All @@ -254,7 +257,7 @@ declare namespace botkit {
identifyTeam(): string;
identifyBot(): { id: string; name: string; team_id: string; };
replyAcknowledge(cb?: (err: Error) => void): void;
replyAndUpdate(src: SlackMessage, resp: string | SlackMessage, cb: (err: Error, res: string) => void): void;
replyAndUpdate(src: SlackMessage, resp: string | SlackMessage, cb: (err: Error, res: string, updateResponse: SlackUpdateMessageCallback) => void): void;
replyInThread(src: SlackMessage, resp: string | SlackMessage, cb: (err: Error, res: string) => void): void;
replyPrivate(src: SlackMessage, resp: string | SlackMessage, cb?: (err: Error) => void): void;
replyPrivateDelayed(src: SlackMessage, resp: string | SlackMessage, cb?: (err: Error) => void): void;
Expand Down

0 comments on commit 2ec7fc7

Please sign in to comment.