forked from EllieBotDevs/elliebot
Updated Searches module
This commit is contained in:
parent
888994dd67
commit
0466701e28
8 changed files with 77 additions and 383 deletions
src/EllieBot/Modules/Searches
|
@ -2,6 +2,7 @@
|
|||
using Microsoft.Extensions.Caching.Memory;
|
||||
using EllieBot.Modules.Searches.Common;
|
||||
using EllieBot.Modules.Searches.Services;
|
||||
using EllieBot.Modules.Utility;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using SixLabors.ImageSharp;
|
||||
|
@ -168,7 +169,7 @@ public partial class Searches : EllieModule<SearchesService>
|
|||
.AddField("Rating", movie.ImdbRating, true)
|
||||
.AddField("Genre", movie.Genre, true)
|
||||
.AddField("Year", movie.Year, true)
|
||||
.WithImageUrl(movie.Poster))
|
||||
.WithImageUrl(Uri.IsWellFormedUriString(movie.Poster, UriKind.Absolute) ? movie.Poster : null))
|
||||
.SendAsync();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue