diff --git a/lib/src/models/guild/member.dart b/lib/src/models/guild/member.dart index b60147acf..05a2b081a 100644 --- a/lib/src/models/guild/member.dart +++ b/lib/src/models/guild/member.dart @@ -143,14 +143,16 @@ class Member extends PartialMember { hash: avatarDecorationHash!, ); - CdnAsset get banner => CdnAsset( - client: manager.client, - base: HttpRoute() - ..guilds(id: manager.guildId.toString()) - ..users(id: id.toString()) - ..banners(), - hash: bannerHash!, - ); + CdnAsset? get banner => bannerHash == null + ? null + : CdnAsset( + client: manager.client, + base: HttpRoute() + ..guilds(id: manager.guildId.toString()) + ..users(id: id.toString()) + ..banners(), + hash: bannerHash!, + ); } /// Flags that can be applied to a [Member].