Skip to content

Commit 4d02b81

Browse files
authored
Update upload_image_to_imgur.js to use getMods() (#1060)
1 parent 179b70b commit 4d02b81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

actions/upload_image_to_imgur.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const { ImgurClient } = require('imgur');
2-
31
module.exports = {
42
name: 'Upload Image To Imgur',
53
section: 'Other Stuff',
@@ -59,6 +57,7 @@ module.exports = {
5957
init() {},
6058

6159
action(cache) {
60+
const { ImgurClient } = this.getMods().require('imgur');
6261
const data = cache.actions[cache.index];
6362
const clientID = this.evalMessage(data.clientID, cache);
6463
const clientSecret = this.evalMessage(data.clientSecret, cache);

0 commit comments

Comments
 (0)