diff --git a/MomentumDiscordBot/Services/TwitchApiService.cs b/MomentumDiscordBot/Services/TwitchApiService.cs index 73ac14f..ed20c4e 100644 --- a/MomentumDiscordBot/Services/TwitchApiService.cs +++ b/MomentumDiscordBot/Services/TwitchApiService.cs @@ -18,7 +18,7 @@ public class TwitchApiService private readonly ConcurrentDictionary _categoryNames = new(); private readonly ILogger _logger; - private readonly string _momentumModGameId = null; + private string _momentumModGameId = null; public TwitchApiService(ILogger logger, Configuration config) { @@ -34,7 +34,8 @@ public TwitchApiService(ILogger logger, Configuration config) public async Task GetMomentumModIdAsync() { var games = await _apiService.Helix.Games.GetGamesAsync(gameNames: new List { "Momentum Mod" }); - return games.Games.First().Id; + _momentumModGameId = games.Games.First().Id; + return _momentumModGameId; } public async Task GetGameNameAsync(string id)