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
//Paste this function in DevTools console inside Discord | |
/** | |
* Delete all messages in a Discord channel or DM | |
* @param {string} authToken Your authorization token | |
* @param {string} authorId Author of the messages you want to delete | |
* @param {string} channelId Channel were the messages are located | |
* @param {string} afterMessageId Only delete messages after this, leave blank do delete all | |
* @author Victornpb <https://www.github.com/victornpb> | |
* @see https://gist.github.com/victornpb/135f5b346dea4decfc8f63ad7d9cc182 |