Simplified this
This commit is contained in:
parent
c915dd454a
commit
4e84d0ac8d
1 changed files with 2 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue