diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 93945e1..db9766b 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -171,9 +171,11 @@ class Pterodactyl(commands.Cog): message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=None) await message.delete(delay=3) - @app_commands.command() - async def test(self, interaction: discord.Interaction, endpoint: str = None): - """This does stuff!""" + get_group = app_commands.Group(name='get', description="Retrieves information from the Pterodactyl API.") + + @get_group.command(name='url', description="Retrieves the URL for the specified endpoint.") + async def retrieve_url(self, interaction: discord.Interaction, endpoint: str = None): + """Retrieves the URL for the specified endpoint.""" try: if endpoint: url = await self.get_url(interaction.guild, endpoint)