From 43ce605dfe13b900e2a3d0fda7654465e7692253 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien <23700969+mwittrien@users.noreply.github.com> Date: Fri, 29 Apr 2022 14:59:03 +0200 Subject: [PATCH] Update ChatAliases.plugin.js --- Plugins/ChatAliases/ChatAliases.plugin.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Plugins/ChatAliases/ChatAliases.plugin.js b/Plugins/ChatAliases/ChatAliases.plugin.js index dea1cc1dec..52eb6327d0 100644 --- a/Plugins/ChatAliases/ChatAliases.plugin.js +++ b/Plugins/ChatAliases/ChatAliases.plugin.js @@ -2,7 +2,7 @@ * @name ChatAliases * @author DevilBro * @authorId 278543574059057154 - * @version 2.3.8 + * @version 2.3.9 * @description Allows you to configure your own Aliases/Commands * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,13 +17,8 @@ module.exports = (_ => { "info": { "name": "ChatAliases", "author": "DevilBro", - "version": "2.3.8", + "version": "2.3.9", "description": "Allows you to configure your own Aliases/Commands" - }, - "changeLog": { - "fixed": { - "Attachments": "No longer uploads Attachments to every Message Draft of all Channels in a Server" - } } }; @@ -177,8 +172,8 @@ module.exports = (_ => { })) ].flat(10).filter(n => n); }, - onSelect: (results, index, _, editor) => { - editor.insertText(results.aliases[index].file ? results.aliases[index].word : BDFDB.StringUtils.insertNRST(results.aliases[index].replace)); + onSelect: data => { + data.options.insertText(data.results.aliases[data.index].file ? data.results.aliases[data.index].word : BDFDB.StringUtils.insertNRST(data.results.aliases[data.index].replace)); return {}; } };