From edfed485ebbac947e197d7ab6139e9c7506b7d53 Mon Sep 17 00:00:00 2001 From: TheMonDon <11539895+TheMonDon@users.noreply.github.com> Date: Sun, 5 Jan 2025 18:54:03 -0600 Subject: [PATCH] Update upload_image_to_imgur.js to use getMods() --- actions/upload_image_to_imgur.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actions/upload_image_to_imgur.js b/actions/upload_image_to_imgur.js index db16f11f..18f111bb 100644 --- a/actions/upload_image_to_imgur.js +++ b/actions/upload_image_to_imgur.js @@ -1,5 +1,3 @@ -const { ImgurClient } = require('imgur'); - module.exports = { name: 'Upload Image To Imgur', section: 'Other Stuff', @@ -59,6 +57,7 @@ module.exports = { init() {}, action(cache) { + const { ImgurClient } = this.getMods().require('imgur'); const data = cache.actions[cache.index]; const clientID = this.evalMessage(data.clientID, cache); const clientSecret = this.evalMessage(data.clientSecret, cache);