nekobot-api
Advanced tools
Comparing version 1.3.3 to 1.4.0
{ | ||
"name": "nekobot-api", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"description": "NekoBot API wrapper for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -165,3 +165,9 @@ import { NekoBot } from "./NekoBot"; | ||
trash(url: string): Promise<string>; | ||
/** | ||
* Stickbug Image | ||
* @param {string} url - Image url for stickbug | ||
* @returns {Promise<string>} The image URL | ||
*/ | ||
stickbug(url: string): Promise<string>; | ||
} | ||
export { ImageGeneration }; |
@@ -410,4 +410,20 @@ "use strict"; | ||
} | ||
/** | ||
* Stickbug Image | ||
* @param {string} url - Image url for stickbug | ||
* @returns {Promise<string>} The image URL | ||
*/ | ||
stickbug(url) { | ||
return new Promise((resolve, reject) => { | ||
this.client | ||
.request("imagegen", { | ||
type: "stickbug", | ||
url | ||
}) | ||
.then((res) => resolve(res.body.message)) | ||
.catch(reject); | ||
}); | ||
} | ||
} | ||
exports.ImageGeneration = ImageGeneration; | ||
//# sourceMappingURL=ImageGeneration.js.map |
{ | ||
"name": "nekobot-api", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"description": "NekoBot API wrapper for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
47536
943