From fd72bb17749f089c055f052821ed01a9ac0476ff Mon Sep 17 00:00:00 2001 From: stijndcl Date: Thu, 30 Jun 2022 21:49:45 +0200 Subject: [PATCH] Typing --- didier/data/flags/posix.py | 2 +- didier/data/modals/custom_commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/didier/data/flags/posix.py b/didier/data/flags/posix.py index 582fd4e..8747165 100644 --- a/didier/data/flags/posix.py +++ b/didier/data/flags/posix.py @@ -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: diff --git a/didier/data/modals/custom_commands.py b/didier/data/modals/custom_commands.py index 74e71e6..a54f690 100644 --- a/didier/data/modals/custom_commands.py +++ b/didier/data/modals/custom_commands.py @@ -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)