Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Optional Provider URL (#55)
Browse files Browse the repository at this point in the history
Same as Icon URL and Proxy Icon URL. This hopefully should be the last one; I tested it for 24 hours after fixing it and no other crashes occurred.
  • Loading branch information
liamrosenfeld authored and Azoy committed Feb 10, 2019
1 parent 84ad999 commit 0b98a55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Sword/Types/Message.swift
Original file line number Diff line number Diff line change
@@ -521,11 +521,11 @@ extension Embed {

public struct Provider {
public var name: String
public var url: String
public var url: String?

init(_ json: [String: Any]) {
self.name = json["name"] as! String
self.url = json["url"] as! String
self.url = json["url"] as? String
}
}

0 comments on commit 0b98a55

Please sign in to comment.