MutableTweet - daneden/Twift GitHub Wiki
MutableTweet
A mutable Tweet object for creating new Tweets via the postTweet
method
public struct MutableTweet: Codable
Inheritance
Codable
Initializers
init(text:media:poll:quoteTweetId:reply:replySettings:)
public init(text: String? = nil,
media: MutableMedia? = nil,
poll: MutablePoll? = nil,
quoteTweetId: Tweet.ID? = nil,
reply: Reply? = nil,
replySettings: Tweet.ReplyAudience? = nil)
Properties
text
Text of the Tweet being created. This field is required if media.mediaIds
is not present.
public var text: String?
media
A JSON object that contains media information being attached to created Tweet. This is mutually exclusive from Quote Tweet ID and Poll.
public var media: MutableMedia?
poll
A JSON object that contains options for a Tweet with a poll. This is mutually exclusive from Media and Quote Tweet ID.
public var poll: MutablePoll?
quoteTweetId
Link to the Tweet being quoted.
public var quoteTweetId: Tweet.ID?
reply
Information about the Tweet this Tweet is replying to
public var reply: Reply?
replySettings
Settings to indicate who can reply to the Tweet. Options include "mentionedUsers" and "following". If the field isn’t specified, it will default to everyone.
public var replySettings: Tweet.ReplyAudience?