mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
Move mediaproxy URL rewriting to ProxyService
This shows full size avatars in API / cards. Also, rewrite URLs currently stored with media.discordapp.net "back" to cdn.discordapp.com before sending them to users.
This commit is contained in:
parent
2bb8c084c9
commit
dcc15dc847
15 changed files with 44 additions and 35 deletions
|
|
@ -203,7 +203,7 @@ namespace PluralKit.Bot
|
|||
{
|
||||
var eb = new EmbedBuilder()
|
||||
.Title("System icon")
|
||||
.Image(new(ctx.System.AvatarUrl))
|
||||
.Image(new(ctx.System.AvatarUrl.TryGetCleanCdnUrl()))
|
||||
.Description("To clear, use `pk;system icon clear`.");
|
||||
await ctx.Reply(embed: eb.Build());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue