command group to fix argument error
All checks were successful
Build and Push Docker Image / build (push) Successful in 12s

This commit is contained in:
Corban-Lee Jones 2024-12-11 17:41:18 +00:00
parent 1329ef8bd6
commit 6faa3cdd01

View File

@ -32,8 +32,14 @@ class PlayersCog(commands.Cog):
self.file_handler = LogFileReader(USER_LOG_FILE_PATH)
self.listen_for_changes.start()
@app_commands.command(name="build-from-logs")
@app_commands.default_permissions(Permissions.all())
cmd_group = app_commands.Group(
name="players",
description="Commands for the players cog.",
default_permissions=Permissions.all(),
guild_only=True
)
@cmd_group.command(name="build-from-logs")
async def build_from_logs(self, inter: Interaction):
"""
Build player data from existing and older log files.