Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Jun 18, 2018
1 parent 592392f commit 084a5ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/main/objects/Guild.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ class Guild {

/// The guild's icon, represented as URL.
String iconURL({String format: 'webp', int size: 128}) {
return 'https://cdn.${_Constants.host}/icons/${this.id}/${this.icon}.$format?size=$size';
if (this.icon == null)
return 'https://cdn.${_Constants.host}/icons/${this.id}/${this.icon}.$format?size=$size';

return null;
}

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

0 comments on commit 084a5ae

Please sign in to comment.