diff --git a/CHANGELOG.md b/CHANGELOG.md index cd20f2f..c101366 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Mostly based on [keepachangelog](https://keepachangelog.com/en/1.1.0/) except date format. a-c-f-r-o +## [5.3.2] - 14.12.2024 + +## Fixed + +- `.banner` should be working properly now with both server and global user banners + ## [5.3.1] - 13.12.2024 ## Changed diff --git a/src/EllieBot/EllieBot.csproj b/src/EllieBot/EllieBot.csproj index 815c7ec..4d06b71 100644 --- a/src/EllieBot/EllieBot.csproj +++ b/src/EllieBot/EllieBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.3.1 + 5.3.2 $(MSBuildProjectDirectory) diff --git a/src/EllieBot/Modules/Searches/Searches.cs b/src/EllieBot/Modules/Searches/Searches.cs index 5b4baaf..3a71da6 100644 --- a/src/EllieBot/Modules/Searches/Searches.cs +++ b/src/EllieBot/Modules/Searches/Searches.cs @@ -417,7 +417,8 @@ public partial class Searches : EllieModule { 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) {