Skip to content

Commit f496cd5

Browse files
authored
Allow mods to use investigate command (#74)
1 parent b940215 commit f496cd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cogs/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ async def stop_server_watch(self, interaction: discord.Interaction, port: int):
560560
await interaction.response.send_message(f"✅ Stopped watching server on port {port}.")
561561

562562
@app_commands.command(description="Investigate server players", name="investigate")
563-
@app_commands.checks.has_any_role("Admin")
563+
@app_commands.checks.has_any_role("Admin", "Mod")
564564
@app_commands.choices(port=ports_choices)
565565
async def investigate(self, interaction: discord.Interaction, port: int, public: bool = False): # Added 'public' parameter
566566
logger.info(f"{interaction.user.name} called /investigate for port {port}")

0 commit comments

Comments
 (0)