Fix a stupid bug with the !avatar command

This commit is contained in:
runebaas 2020-11-24 21:40:33 +01:00
parent 4c3b7044ce
commit 09dbeb9766
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -21,8 +21,8 @@ namespace Geekbot.Bot.Commands.Utils
{ {
try try
{ {
if (user == null) user = Context.User; user ??= Context.User;
var url = user.GetAvatarUrl().Replace("128", "1024"); var url = user.GetAvatarUrl(ImageFormat.Auto, 1024);
await ReplyAsync(url); await ReplyAsync(url);
} }
catch (Exception e) catch (Exception e)