pull/118/head
stijndcl 2022-06-30 21:49:45 +02:00
parent bd63f80a7d
commit fd72bb1774
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from discord.ext import commands
class PosixFlags(commands.FlagConverter, delimiter=" ", prefix="--"):
class PosixFlags(commands.FlagConverter, delimiter=" ", prefix="--"): # type: ignore
"""Base class to add POSIX-like flags to commands
Example usage:

View File

@ -24,7 +24,7 @@ class CreateCustomCommand(discord.ui.Modal, title="Create Custom Command"):
async def on_submit(self, interaction: discord.Interaction):
async with self.client.db_session as session:
command = await create_command(session, self.name.value, self.response.value)
command = await create_command(session, str(self.name.value), str(self.response.value))
await interaction.response.send_message(f"Successfully created ``{command.name}``.", ephemeral=True)