Fixes
This commit is contained in:
parent
e3adf55742
commit
0828130ae8
8 changed files with 16 additions and 17 deletions
|
@ -6,8 +6,8 @@ using Discord;
|
|||
using Discord.Commands;
|
||||
using Geekbot.net.Lib;
|
||||
using Geekbot.net.Lib.ErrorHandling;
|
||||
using Newtonsoft.Json;
|
||||
using StackExchange.Redis;
|
||||
using Utf8Json;
|
||||
|
||||
namespace Geekbot.net.Commands.Integrations.Google
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ namespace Geekbot.net.Commands.Integrations.Google
|
|||
|
||||
var url = new Uri($"https://kgsearch.googleapis.com/v1/entities:search?languages=en&limit=1&query={searchText}&key={apiKey}");
|
||||
var responseString = client.DownloadString(url);
|
||||
var response = JsonSerializer.Deserialize<GoogleKgApiResponseDto>(responseString);
|
||||
var response = JsonConvert.DeserializeObject<GoogleKgApiResponseDto>(responseString);
|
||||
|
||||
if (!response.ItemListElement.Any())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue