Implemented .net 10 support. Updated all affected libraries and the code. Not testes yet.

This commit is contained in:
Anon 2026-03-21 20:07:20 +01:00
parent 5488140261
commit 28834e7a86
10 changed files with 107 additions and 94 deletions

View file

@ -284,7 +284,7 @@ namespace MinecraftClient.ChatBots
if (text != null)
messageBuilder.WithContent(text);
messageBuilder.WithFiles(new Dictionary<string, Stream>() { { $"attachment://{filePath}", fs } });
messageBuilder.AddFiles(new Dictionary<string, Stream>() { { filePath, fs } });
discordBotClient!.SendMessageAsync(discordChannel, messageBuilder).Wait(Config.Message_Send_Timeout * 1000);
}
@ -301,7 +301,7 @@ namespace MinecraftClient.ChatBots
if (!CanSendMessages())
return;
SendMessage(new DiscordMessageBuilder().WithFile(fileStream));
SendMessage(new DiscordMessageBuilder().AddFile(fileStream));
}
private bool CanSendMessages()