Changed version + Updated docs for Blink()
This commit is contained in:
@@ -94,7 +94,9 @@ bot.login("super_secret_token")
|
||||
|
||||
## Gifs
|
||||
|
||||
- ``new DIG.Blink().getImage(`<Avatar>`, `<Avatar2>`, `<Timeout (Number in ms)>`);``
|
||||
- ``new DIG.Blink().getImage(`<Avatar>`, `<Avatar2>`.....);``
|
||||
|
||||
> You can add as many images as you want
|
||||
|
||||

|
||||
|
||||
@@ -237,6 +239,9 @@ bot.login("super_secret_token")
|
||||
|
||||
# Changelog
|
||||
|
||||
## v1.4.7
|
||||
- Improved Blink() generation, now supports adding an insane amount of images ^^
|
||||
|
||||
## v1.4.5
|
||||
- Added Karaba()
|
||||
- Fixed some errors returns that were not the same
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-image-generation",
|
||||
"version": "1.4.5",
|
||||
"version": "1.4.7",
|
||||
"description": "discord-image-generation is a powerfull module that allow you to generate awesome images.",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
|
@@ -4,10 +4,9 @@ const GIFEncoder = require(`gifencoder`);
|
||||
module.exports = class Blink {
|
||||
|
||||
async getImage( ...images) {
|
||||
console.log(images)
|
||||
if (!images || images.length < 2) throw new Error(`You must provide an image as a first argument.`);
|
||||
if (!images || images.length < 2) throw new Error(`You must provide at least two images.`);
|
||||
|
||||
const GIF = new GIFEncoder(480, 480)
|
||||
const GIF = new GIFEncoder(480, 480);
|
||||
GIF.start();
|
||||
GIF.setRepeat(0);
|
||||
GIF.setDelay(1000);
|
||||
|
Reference in New Issue
Block a user