diff --git a/CHANGELOG.md b/CHANGELOG.md index dea0534f3..04605ba42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.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/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index 8bf9d7b13..2ebd0c090 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -417,7 +417,8 @@ public partial class Searches : NadekoModule { 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) { diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index 3d64b2720..cb46d983d 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.3.1 + 5.3.2 $(MSBuildProjectDirectory)