diff --git a/PluralKit.Bot/Commands/Avatars/ContextAvatarExt.cs b/PluralKit.Bot/Commands/Avatars/ContextAvatarExt.cs index 612db325..382d064d 100644 --- a/PluralKit.Bot/Commands/Avatars/ContextAvatarExt.cs +++ b/PluralKit.Bot/Commands/Avatars/ContextAvatarExt.cs @@ -30,6 +30,10 @@ namespace PluralKit.Bot var arg = ctx.RemainderOrNull(); if (arg != null) { + // Allow surrounding the URL with to "de-embed" + if (arg.StartsWith("<") && arg.EndsWith(">")) + arg = arg.Substring(1, arg.Length - 2); + if (!Uri.TryCreate(arg, UriKind.Absolute, out var uri)) throw Errors.InvalidUrl(arg);