Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ module.exports = {
"conversation",
],
optional: true,
description: "Channel to add star to, or channel where the message to add star to was posted (used with timestamp).",
description: "Channel to add star to, or channel where the message to add star to was posted (used with timestamp)",
},
timestamp: {
propDefinition: [
slack,
"timestamp",
],
optional: true,
description: "Timestamp of the message to add star to.",
description: "Timestamp of the message to add star to",
},
file: {
propDefinition: [
slack,
"file",
],
optional: true,
description: "File to add star to.",
description: "File to add star to",
},
},
async run() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const slack = require("../../slack.app.js");

module.exports = {
key: "slack-reply-to-a-message",
key: "slack-reply-to-a-message-thread",
name: "Reply to a Message Thread",
description: "Send a message as a threaded reply",
version: "0.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ export default {
},
},
async run({ $ }) {
const resp = await this.telegramBotApi.deleteMessage(this.chatId, this.messageId);
$.export("$summary", `Successfully deleted the message from chat, "${this.chatId}"`);
const {
chatId,
messageId,
} = this;
const resp = await this.telegramBotApi.deleteMessage(chatId, messageId);
$.export("$summary", `Successfully deleted the message from chat, "${chatId}"`);
return resp;
},
};