From 52be531807095a661eaac7edbbc4fb5fa348aa07 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 5 Mar 2024 02:24:20 -0500 Subject: [PATCH] fix(pterodactyl): type hints --- pterodactyl/pterodactyl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index b616479..baa9724 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -115,7 +115,7 @@ class Pterodactyl(commands.Cog): """Send power actions to the server.""" @pterodactyl_power.command(name = "start") - async def pterodactyl_power_start(self, ctx: commands.Context) -> None: + async def pterodactyl_power_start(self, ctx: commands.Context) -> Optional[discord.Message]: """Start the server.""" current_status = await config.current_status() if current_status == "running": @@ -133,7 +133,7 @@ class Pterodactyl(commands.Cog): await message.edit(content="Cancelled.", view=None) @pterodactyl_power.command(name = "stop") - async def pterodactyl_power_stop(self, ctx: commands.Context) -> None: + async def pterodactyl_power_stop(self, ctx: commands.Context) -> Optional[discord.Message]: """Stop the server.""" current_status = await config.current_status() if current_status == "stopped": @@ -151,7 +151,7 @@ class Pterodactyl(commands.Cog): await message.edit(content="Cancelled.", view=None) @pterodactyl_power.command(name = "restart") - async def pterodactyl_power_restart(self, ctx: commands.Context) -> None: + async def pterodactyl_power_restart(self, ctx: commands.Context) -> Optional[discord.Message]: """Restart the server.""" current_status = await config.current_status() if current_status in ["starting", "stopping"]: