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

Commit

Permalink
Fix Embed public initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Azoy committed Aug 27, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 35f11b6 commit 1e7e342
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Sources/Sword/Types/Message.swift
Original file line number Diff line number Diff line change
@@ -352,13 +352,18 @@ public struct Embed {
/// Video data from embed
public var video: [String: Any]?

// MARK: Initializer
// MARK: Initializers

/// Creates an Embed Structure
public init() {
self.type = "rich"
}

/**
Creates Embed struct
Creates an Embed Structure

- parameter json: JSON representable as a dictionary
*/
*/
init(_ json: [String: Any]) {
self.author = json["author"] as? [String: Any]
self.color = json["color"] as? Int

0 comments on commit 1e7e342

Please sign in to comment.