diff --git a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs index 711c4e930..4a7d4fafb 100644 --- a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs +++ b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs @@ -1419,10 +1419,10 @@ namespace Discord.WebSocket /// public async ValueTask GetStickerAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null) { - var sticker = _stickers.FirstOrDefault(x => x.Key == id); + var sticker = _stickers?.FirstOrDefault(x => x.Key == id); - if (sticker.Value != null) - return sticker.Value; + if (sticker?.Value != null) + return sticker?.Value; if (mode == CacheMode.CacheOnly) return null;