Updated log error message
This commit is contained in:
parent
556f082aa2
commit
3a57fa1e02
24 changed files with 28 additions and 28 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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)
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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...");
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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
|
||||||
|
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue