class Discordrb::EmbedThumbnail

An Embed thumbnail for the embed object

Attributes

embed[R]

@return [Embed] the embed object this is based on.

height[R]

@return [Integer] the height of this thumbnail file, in pixels.

proxy_url[R]

@return [String] the thumbnail's proxy URL - I'm not sure what exactly this does, but I think it has something to

do with CDNs.
url[R]

@return [String] the CDN URL this thumbnail can be downloaded at.

width[R]

@return [Integer] the width of this thumbnail file, in pixels.

Public Class Methods

new(data, embed) click to toggle source

@!visibility private

# File lib/discordrb/data.rb, line 2264
def initialize(data, embed)
  @embed = embed

  @url = data['url']
  @proxy_url = data['proxy_url']
  @width = data['width']
  @height = data['height']
end