Преглед изворни кода

fixing some errors and adding a title to the modal form

BaumSplitter41 пре 3 недеља
родитељ
комит
8710fce36d
1 измењених фајлова са 3 додато и 2 уклоњено
  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)