GiphyAttachmentPayload
Represents a payload for attachments with .giphy
type.
public struct GiphyAttachmentPayload: AttachmentPayload
Inheritance
AttachmentPayload
, Decodable
, Encodable
Initializers
init(from:)
public init(from decoder: Decoder) throws
Properties
type
An attachment type all GiphyAttachmentPayload
instances conform to. Is set to .giphy
.
public static let type: AttachmentType = .giphy
title
A title, usually the search request used to find the gif.
public var title: String
previewURL
A link to gif file.
public var previewURL: URL
actions
Actions when gif is not sent yet. (for example Shuffle
)
public var actions: [AttachmentAction]
Methods
encode(to:)
public func encode(to encoder: Encoder) throws