Socket
Socket
Sign inDemoInstall

satella

Package Overview
Dependencies
11
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.9 to 1.4.0

11

index.d.ts

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc