class Tourmaline::LinkPreviewOptions
- Tourmaline::LinkPreviewOptions
- Reference
- Object
Overview
Describes the options used for link preview generation.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(is_disabled : Bool | Nil = nil, url : String | Nil = nil, prefer_small_media : Bool | Nil = nil, prefer_large_media : Bool | Nil = nil, show_above_text : Bool | Nil = nil)
Instance Method Summary
-
#is_disabled=(is_disabled : Bool | Nil)
Optional.
-
#is_disabled? : Bool | Nil
Optional.
-
#prefer_large_media=(prefer_large_media : Bool | Nil)
Optional.
-
#prefer_large_media? : Bool | Nil
Optional.
-
#prefer_small_media=(prefer_small_media : Bool | Nil)
Optional.
-
#prefer_small_media? : Bool | Nil
Optional.
-
#show_above_text=(show_above_text : Bool | Nil)
Optional.
-
#show_above_text? : Bool | Nil
Optional.
-
#url : String | Nil
Optional.
-
#url=(url : String | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
Optional. True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
Optional. True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
Optional. True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text
Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text
Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used
Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used