Comparing version 1.3.9 to 1.4.0
@@ -208,2 +208,12 @@ import events from "events" | ||
interface ImageOptions { | ||
width: string | ||
height: string | ||
} | ||
interface Image { | ||
url: string, | ||
options?: ImageOptions | ||
} | ||
export class Embed { | ||
@@ -218,2 +228,3 @@ title?: string | ||
thumbnail?: Thumbnail | ||
image?: Image | ||
} | ||
@@ -220,0 +231,0 @@ |
{ | ||
"name": "satella", | ||
"version": "1.3.9", | ||
"version": "1.4.0", | ||
"description": "Satella - A wrapper for the Discord API made in JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,2 +24,3 @@ const Color = require("./Color") | ||
this.thumbnail = data.color || null | ||
this.image = data.image || null | ||
} | ||
@@ -47,2 +48,11 @@ | ||
setImage(url, options) { | ||
if (options && options.height && options.width) { | ||
this.thumbnail = { url, proxy_url: url, height: options.height, width: options.width } | ||
} else { | ||
this.thumbnail = { url, proxy_url: url } | ||
} | ||
return this | ||
} | ||
setDescription(description) { | ||
@@ -49,0 +59,0 @@ this.description = description |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51087
1425