Updated log error message

This commit is contained in:
Toastie 2024-12-27 16:53:40 +13:00
parent 556f082aa2
commit 3a57fa1e02
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
24 changed files with 28 additions and 28 deletions

View file

@ -89,7 +89,7 @@ public class AddCategoryCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -78,7 +78,7 @@ public class AddCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
catch (Exception) catch (Exception)

View file

@ -69,7 +69,7 @@ public class AddMessageCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -70,7 +70,7 @@ public class AddStaffCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -56,7 +56,7 @@ public class AdminCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
@ -137,7 +137,7 @@ public class AdminCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
else else
@ -172,7 +172,7 @@ public class AdminCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
Logger.Log("Reloading bot..."); Logger.Log("Reloading bot...");

View file

@ -108,7 +108,7 @@ public class AssignCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -47,7 +47,7 @@ public class BlacklistCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
catch (Exception) catch (Exception)

View file

@ -105,7 +105,7 @@ public class CloseCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
if (Config.closingNotifications) if (Config.closingNotifications)

View file

@ -62,7 +62,7 @@ public class CreateButtonPanelCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -40,7 +40,7 @@ public class CreateSelectionBoxPanelCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }

View file

@ -60,7 +60,7 @@ public class InterviewCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
@ -122,7 +122,7 @@ public class InterviewCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -179,7 +179,7 @@ public class InterviewTemplateCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
catch (Exception e) catch (Exception e)
@ -253,7 +253,7 @@ public class InterviewTemplateCommands
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -120,7 +120,7 @@ public class MoveCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -253,7 +253,7 @@ public class NewCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
return (true, "Ticket opened, " + member.Mention + "!\n" + ticketChannel.Mention); return (true, "Ticket opened, " + member.Mention + "!\n" + ticketChannel.Mention);

View file

@ -85,7 +85,7 @@ public class RandomAssignCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }

View file

@ -55,7 +55,7 @@ public class RemoveCategoryCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -54,7 +54,7 @@ public class RemoveMessageCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -52,7 +52,7 @@ public class RemoveStaffCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -53,7 +53,7 @@ public class SayCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }

View file

@ -58,7 +58,7 @@ public class SetSummaryCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -81,7 +81,7 @@ public class ToggleActiveCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -102,7 +102,7 @@ public class TranscriptCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
try try

View file

@ -58,7 +58,7 @@ public class UnassignCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
} }

View file

@ -46,7 +46,7 @@ public class UnblacklistCommand
} }
catch (NotFoundException) catch (NotFoundException)
{ {
Logger.Error("Could not find the log channel."); Logger.Error("Could not send message in log channel.");
} }
} }
catch (Exception) catch (Exception)