mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
fix: .banner fixed, will now show guild banner if available, otherwise global banner, if available
This commit is contained in:
@@ -417,7 +417,8 @@ public partial class Searches : NadekoModule<SearchesService>
|
|||||||
{
|
{
|
||||||
usr ??= (IGuildUser)ctx.User;
|
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)
|
if (bannerUrl is null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user