fix: expiresAt attribute of Poll entity is not mark optional issue

This commit is contained in:
CMK 2021-02-24 18:35:55 +08:00
parent ca013f79da
commit 6182390699
1 changed files with 2 additions and 2 deletions

View File

@ -13,14 +13,14 @@ extension Mastodon.Entity {
/// - Since: 2.8.0
/// - Version: 3.3.0
/// # Last Update
/// 2021/2/4
/// 2021/2/24
/// # Reference
/// [Document](https://docs.joinmastodon.org/entities/poll/)
public struct Poll: Codable {
public typealias ID = String
public let id: ID
public let expiresAt: Date
public let expiresAt: Date? // if nil the poll does not end
public let expired: Bool
public let multiple: Bool
public let votesCount: Int