Fixed TTS using StreamElements. Fixed several issues.
This commit is contained in:
@@ -35,7 +35,13 @@ public class SevenApiClient
|
||||
{
|
||||
_logger.Debug($"Fetching 7tv information using Twitch Id [twitch id: {twitchId}]");
|
||||
var details = await _web.GetJson<UserDetails>($"{API_URL}/users/twitch/" + twitchId);
|
||||
return details?.EmoteSet;
|
||||
_logger.Information($"Fetched 7tv emotes [count: {details?.EmoteSet.EmoteCount ?? -1}]");
|
||||
if (details?.EmoteSet == null)
|
||||
{
|
||||
_logger.Warning("Could not find 7tv emotes linked to your Twitch account.");
|
||||
return null;
|
||||
}
|
||||
return details.EmoteSet;
|
||||
}
|
||||
catch (JsonException e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user