Skip to content

Commit ed548d0

Browse files
committed
Voting can handle PAUSED servers also now.
1 parent 9abd946 commit ed548d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/voting/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ async def _list(self, interaction: discord.Interaction):
4949
@app_commands.rename(_server='server')
5050
@utils.app_has_role('DCS')
5151
async def create(self, interaction: discord.Interaction,
52-
_server: app_commands.Transform[Server, utils.ServerTransformer(status=[Status.RUNNING])],
52+
_server: app_commands.Transform[Server, utils.ServerTransformer(
53+
status=[Status.RUNNING, Status.PAUSED])],
5354
what: Literal['Restart', 'Mission Change', 'Weather Change']):
5455
config = self.get_config(_server)
5556
# Users with either the "creator" role or "DCS Admin" can use this command

0 commit comments

Comments
 (0)