mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Fix discord not editing the deploy message text
This commit is contained in:
@@ -383,10 +383,15 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
Value = errorMessage
|
||||
});
|
||||
|
||||
var updatedMessage = $"DM: Deployment {completionString}!";
|
||||
try
|
||||
{
|
||||
await message.ModifyAsync(
|
||||
props => props.Embed = builder.Build())
|
||||
props =>
|
||||
{
|
||||
props.Content = updatedMessage;
|
||||
props.Embed = builder.Build();
|
||||
})
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -395,7 +400,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
try
|
||||
{
|
||||
await channel.SendMessageAsync(
|
||||
$"DM: Deployment {completionString}!",
|
||||
updatedMessage,
|
||||
false,
|
||||
builder.Build())
|
||||
.ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user