This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Execute this in the slack developer console - can access it by spam clicking team icons | |
* - make sure to replace TEAM_ID, USER_ID, and CHANNEL_ID first | |
* - requires you have permissions to delete ofc | |
*/ | |
TS.channels.addMsg = function e(t, n) { | |
/* begin message check and delete */ | |
if (n.type == "message" && n.source_team_id == "TEAM_ID" && n.user == "USER_ID") { | |
TS.api.call("chat.delete", {_attempts: 0, _delay_ms: 100, channel: "CHANNEL_ID", ts: n.ts}) | |
} | |
/* end message check and delete */ |