Simplified this

This commit is contained in:
Spielepapagei 2023-03-24 17:54:33 +01:00
parent c915dd454a
commit 4e84d0ac8d

View file

@ -7,15 +7,7 @@ public class DiscordMaintenanceToggle
{
private Task MaintenanceModeToggle(SocketSlashCommand command)
{
if (DiscordBotService.MaintenanceMode)
{
DiscordBotService.MaintenanceMode = false;
}
else
{
DiscordBotService.MaintenanceMode = true;
}
DiscordBotService.MaintenanceMode = !DiscordBotService.MaintenanceMode;
return Task.CompletedTask;
}
}
}