Fixed a lot of compiler warnings. Fixed 7tv connection.
This commit is contained in:
@@ -23,10 +23,17 @@ public class SevenApiClient
|
||||
});
|
||||
}
|
||||
|
||||
public async Task<EmoteSet?> FetchChannelEmoteSet(string twitchId)
|
||||
public async Task<EmoteSet?> FetchChannelEmoteSet(long twitchId)
|
||||
{
|
||||
if (twitchId <= 0)
|
||||
{
|
||||
_logger.Warning("No valid Twitch Id was given for 7tv emotes.");
|
||||
return null;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
_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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user