EditPostParams

public struct EditPostParams : Codable, Sendable

Params to edit a given post

  • Undocumented

    Declaration

    Swift

    public init(post: String, spoilerText: String? = nil, sensitive: Bool? = nil, mediaIds: [String]? = nil, poll: CreatePoll? = nil)
  • The text content of the post. If media_ids is provided, this becomes optional. Attaching a poll is optional while post is provided.

    Declaration

    Swift

    public var post: String
  • Text to be shown as a warning or subject before the actual content. Posts are generally collapsed behind this field.

    Declaration

    Swift

    public var spoilerText: String?
  • Mark post and attached media as sensitive? Defaults to false.

    Declaration

    Swift

    public var sensitive: Bool?
  • Include Attachment IDs to be attached as media. If provided, post becomes optional, and poll cannot be used.

    Declaration

    Swift

    public var mediaIds: [String]?
  • Poll options. Note that editing a poll’s options will reset the votes.

    Declaration

    Swift

    public var poll: CreatePoll?