Explorar o código

fixing some errors and adding a title to the modal form

BaumSplitter41 hai 3 semanas
pai
achega
8710fce36d
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      VPD_BOT/cogs/civ_situ.py

+ 3 - 2
VPD_BOT/cogs/civ_situ.py

@@ -67,8 +67,9 @@ class civsitu(commands.Cog):
 
     #Slash command to trigger the Modal form
     @slash_command()
-    async def civsitu(ctx: discord.ApplicationContext):
-        modal = Situ(title="Modal via Slash Command") # type: ignore
+    async def civsitu(self, ctx: discord.ApplicationContext):
+        """Start a new civ-RP situation."""
+        modal = Situ(title="Create a new civ-rp situation") # type: ignore
         await ctx.send_modal(modal)