From 0304744d9d84f1de1d844ca68d787f3934c29660 Mon Sep 17 00:00:00 2001 From: Toastie Date: Fri, 27 Dec 2024 19:30:30 +1300 Subject: [PATCH] Improved unassign log messages --- Commands/RemoveStaffCommand.cs | 6 +++++- Commands/UnassignCommand.cs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Commands/RemoveStaffCommand.cs b/Commands/RemoveStaffCommand.cs index f9c61fa..4863dd4 100644 --- a/Commands/RemoveStaffCommand.cs +++ b/Commands/RemoveStaffCommand.cs @@ -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) diff --git a/Commands/UnassignCommand.cs b/Commands/UnassignCommand.cs index 321ba5e..b1544ec 100644 --- a/Commands/UnassignCommand.cs +++ b/Commands/UnassignCommand.cs @@ -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")