Fix a stupid bug with the !avatar command
This commit is contained in:
parent
4c3b7044ce
commit
09dbeb9766
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ namespace Geekbot.Bot.Commands.Utils
|
|||
{
|
||||
try
|
||||
{
|
||||
if (user == null) user = Context.User;
|
||||
var url = user.GetAvatarUrl().Replace("128", "1024");
|
||||
user ??= Context.User;
|
||||
var url = user.GetAvatarUrl(ImageFormat.Auto, 1024);
|
||||
await ReplyAsync(url);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
Loading…
Reference in a new issue