From ca9dd84ab5e0ab3549f633f3a10cbf80dccd8aef Mon Sep 17 00:00:00 2001 From: stijndcl Date: Mon, 27 Jun 2022 19:53:44 +0200 Subject: [PATCH] stash --- didier/data/modals/custom_commands.py | 5 +++-- didier/didier.py | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/didier/data/modals/custom_commands.py b/didier/data/modals/custom_commands.py index 90f378c..3cd908f 100644 --- a/didier/data/modals/custom_commands.py +++ b/didier/data/modals/custom_commands.py @@ -49,8 +49,9 @@ class EditCustomCommand(discord.ui.Modal, title="Edit Custom Command"): self.original_name = name self.client = client - self.name = self.add_item(discord.ui.TextInput(label="Name", placeholder="Didier", default=name)) - self.response = self.add_item( + # TODO find a way to access these items + self.add_item(discord.ui.TextInput(label="Name", placeholder="Didier", default=name)) + self.add_item( discord.ui.TextInput( label="Response", placeholder="Hmm?", default=response, style=discord.TextStyle.long, max_length=2000 ) diff --git a/didier/didier.py b/didier/didier.py index 5cefe9f..1138b02 100644 --- a/didier/didier.py +++ b/didier/didier.py @@ -1,6 +1,4 @@ import os -import sys -import traceback import discord from discord.ext import commands