From c674f15895095e92f9ccfb18a44d112bad5130e7 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 16 Jul 2023 12:52:46 -0400 Subject: [PATCH] misc: added test to the get group and renamed it to url --- pterodactyl/ptero.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)