From ba28132a97a92228513c3516edbd0f1b9fbfdddd Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 21 Oct 2017 19:48:05 +0200 Subject: [PATCH] Fixed .xp avatar --- NadekoBot.Core/Modules/Administration/DangerousCommands.cs | 1 + .../Modules/Administration/SelfAssignedRolesCommands.cs | 2 -- NadekoBot.Core/_Extensions/IUserExtensions.cs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NadekoBot.Core/Modules/Administration/DangerousCommands.cs b/NadekoBot.Core/Modules/Administration/DangerousCommands.cs index f61a3525..dfbdb64b 100644 --- a/NadekoBot.Core/Modules/Administration/DangerousCommands.cs +++ b/NadekoBot.Core/Modules/Administration/DangerousCommands.cs @@ -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] diff --git a/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs b/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs index d867c236..9ab5d71f 100644 --- a/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs +++ b/NadekoBot.Core/Modules/Administration/SelfAssignedRolesCommands.cs @@ -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 { diff --git a/NadekoBot.Core/_Extensions/IUserExtensions.cs b/NadekoBot.Core/_Extensions/IUserExtensions.cs index 36a7f9e5..d00d9cb3 100644 --- a/NadekoBot.Core/_Extensions/IUserExtensions.cs +++ b/NadekoBot.Core/_Extensions/IUserExtensions.cs @@ -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"; } }