Improved unassign log messages

This commit is contained in:
Toastie 2024-12-27 19:30:30 +13:00
parent 2b73548b7a
commit 0304744d9d
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 7 additions and 3 deletions

View file

@ -57,7 +57,11 @@ public class RemoveStaffCommand
await logChannel.SendMessageAsync(new DiscordEmbedBuilder
{
Color = DiscordColor.Green,
Description = "Staff member was unassigned from " + command.Channel.Mention + " by " + command.User.Mention + "."
Description = "<@" + assignedTicket.assignedStaffID + "> was unassigned from <#" + assignedTicket.channelID + "> by " + command.User.Mention + ".",
Footer = new DiscordEmbedBuilder.EmbedFooter
{
Text = "Ticket: " + assignedTicket.id.ToString("00000")
}
});
}
catch (Exception e)

View file

@ -39,7 +39,7 @@ public class UnassignCommand
await command.RespondAsync(new DiscordEmbedBuilder
{
Color = DiscordColor.Green,
Description = "Unassigned <@\" + ticket.assignedStaffID + \"> from ticket."
Description = "Unassigned <@" + ticket.assignedStaffID + "> from ticket."
});
try
@ -49,7 +49,7 @@ public class UnassignCommand
await logChannel.SendMessageAsync(new DiscordEmbedBuilder
{
Color = DiscordColor.Green,
Description = "Staff member was unassigned from " + command.Channel.Mention + " by " + command.User.Mention + ".",
Description = "<@" + ticket.assignedStaffID + "> was unassigned from <#" + ticket.channelID + "> by " + command.User.Mention + ".",
Footer = new DiscordEmbedBuilder.EmbedFooter
{
Text = "Ticket: " + ticket.id.ToString("00000")