misc: added test to the get group and renamed it to url
This commit is contained in:
parent
99a6a0dfda
commit
c674f15895
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue