Browse Source

fixing some errors and adding a title to the modal form

BaumSplitter41 3 weeks ago
parent
commit
8710fce36d
1 changed files with 3 additions and 2 deletions
  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 to trigger the Modal form
     @slash_command()
     @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)
         await ctx.send_modal(modal)