mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Implemented .net 10 support. Updated all affected libraries and the code. Not testes yet.
This commit is contained in:
parent
5488140261
commit
28834e7a86
10 changed files with 107 additions and 94 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue