Fixed .xp avatar

This commit is contained in:
Master Kwoth 2017-10-21 19:48:05 +02:00
parent e609f78eec
commit ba28132a97
3 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,7 @@ using System.Threading.Tasks;
#if !GLOBAL_NADEKO
namespace NadekoBot.Modules.Administration
{
//todo make users confirm their decision
public partial class Administration
{
[Group]

View File

@ -1,6 +1,5 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Extensions;
using NadekoBot.Core.Services;
using NadekoBot.Core.Services.Database.Models;
@ -11,7 +10,6 @@ using System.Text;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Common.Collections;
using Microsoft.EntityFrameworkCore;
namespace NadekoBot.Modules.Administration
{

View File

@ -44,6 +44,6 @@ namespace NadekoBot.Extensions
public static string RealAvatarUrl(this DiscordUser usr) =>
usr.AvatarId.StartsWith("a_")
? $"{DiscordConfig.CDNUrl}avatars/{usr.UserId}/{usr.AvatarId}.gif"
: ((IUser)usr).GetAvatarUrl(ImageFormat.Auto);
: $"{DiscordConfig.CDNUrl}avatars/{usr.UserId}/{usr.AvatarId}.png";
}
}