Skip to content

Commit

Permalink
lets try just webp
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Sep 10, 2024
1 parent 6fc71c4 commit 10631e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FMBot.Bot/Services/Guild/WebhookService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ public async Task ChangeToNewAvatar(DiscordShardedClient client, string imageUrl
{
Log.Information($"ChangeToNewAvatar: Updating avatar to {imageUrl}");

imageUrl = imageUrl.Replace(".jpg", ".webp").Replace(".png", ".webp");

try
{
using (var response = await this._httpClient.GetAsync(imageUrl))
Expand Down

0 comments on commit 10631e8

Please sign in to comment.