class Discordrb::EmbedProvider

An Embed provider for the embed object

Attributes

embed[R]

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

name[R]

@return [String] the provider’s name.

url[R]

@return [String, nil] the URL of the provider, or ‘nil` if there is no URL.

Public Class Methods

new(data, embed) click to toggle source

@!visibility private

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

  @name = data['name']
  @url = data['url']
end