We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 179b70b commit 4d02b81Copy full SHA for 4d02b81
actions/upload_image_to_imgur.js
@@ -1,5 +1,3 @@
1
-const { ImgurClient } = require('imgur');
2
-
3
module.exports = {
4
name: 'Upload Image To Imgur',
5
section: 'Other Stuff',
@@ -59,6 +57,7 @@ module.exports = {
59
57
init() {},
60
58
61
action(cache) {
+ const { ImgurClient } = this.getMods().require('imgur');
62
const data = cache.actions[cache.index];
63
const clientID = this.evalMessage(data.clientID, cache);
64
const clientSecret = this.evalMessage(data.clientSecret, cache);
0 commit comments