Skip to content

Commit

Permalink
Fix embed serialization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Jul 9, 2018
1 parent f7840d1 commit ef4145a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/objects/embed/EmbedProvider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ class EmbedProvider {
String url;

EmbedProvider._new(this.raw) {
this.name = raw['name'];
this.url = raw['url'];
if(raw['name' != null])
this.name = raw['name'];

if(raw['url'] != null)
this.url = raw['url'];
}

/// Returns a string representation of this object.
Expand Down

0 comments on commit ef4145a

Please sign in to comment.