class Discordrb::Webhooks::EmbedThumbnail
An embed's thumbnail will be displayed at the right of the message, next to the description and fields. When clicked it will point to the embed URL.
Attributes
url[RW]
@return [String, nil] URL of the thumbnail
Public Class Methods
new(url: nil)
click to toggle source
Creates a new thumbnail object. @param url [String, nil] The URL of the thumbnail.
# File lib/discordrb/webhooks/embeds.rb, line 177 def initialize(url: nil) @url = url end
Public Instance Methods
to_hash()
click to toggle source
@return [Hash] a hash representation of this embed thumbnail, to be converted to JSON.
# File lib/discordrb/webhooks/embeds.rb, line 182 def to_hash { url: @url } end