.banner fixed, will now show guild banner if available, otherwise global banner, if available
This commit is contained in:
parent
75f5cfde29
commit
29822cd0cb
3 changed files with 9 additions and 2 deletions
src/EllieBot
|
@ -4,7 +4,7 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>true</ImplicitUsings>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
<Version>5.3.1</Version>
|
||||
<Version>5.3.2</Version>
|
||||
|
||||
<!-- Output/build -->
|
||||
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
|
||||
|
|
|
@ -417,7 +417,8 @@ public partial class Searches : EllieModule<SearchesService>
|
|||
{
|
||||
usr ??= (IGuildUser)ctx.User;
|
||||
|
||||
var bannerUrl = usr.GetGuildBannerUrl(size: 2048);
|
||||
var bannerUrl = usr.GetGuildBannerUrl(size: 2048)
|
||||
?? (await ((DiscordSocketClient)ctx.Client).Rest.GetUserAsync(usr.Id))?.GetBannerUrl();
|
||||
|
||||
if (bannerUrl is null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue