class Discordrb::Webhooks::EmbedImage
An embed's image will be displayed at the bottom, in large format. It will replace a footer icon URL if one is set.
Attributes
url[RW]
@return [String, nil] URL of the image
Public Class Methods
new(url: nil)
click to toggle source
Creates a new image object. @param url [String, nil] The URL of the image.
# File lib/discordrb/webhooks/embeds.rb, line 157 def initialize(url: nil) @url = url end
Public Instance Methods
to_hash()
click to toggle source
@return [Hash] a hash representation of this embed image, to be converted to JSON.
# File lib/discordrb/webhooks/embeds.rb, line 162 def to_hash { url: @url } end