mirror of https://github.com/stijndcl/didier
Typing
parent
bd63f80a7d
commit
fd72bb1774
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue