mirror of https://github.com/stijndcl/didier
stash
parent
d6a560851b
commit
ca9dd84ab5
|
@ -49,8 +49,9 @@ class EditCustomCommand(discord.ui.Modal, title="Edit Custom Command"):
|
||||||
self.original_name = name
|
self.original_name = name
|
||||||
self.client = client
|
self.client = client
|
||||||
|
|
||||||
self.name = self.add_item(discord.ui.TextInput(label="Name", placeholder="Didier", default=name))
|
# TODO find a way to access these items
|
||||||
self.response = self.add_item(
|
self.add_item(discord.ui.TextInput(label="Name", placeholder="Didier", default=name))
|
||||||
|
self.add_item(
|
||||||
discord.ui.TextInput(
|
discord.ui.TextInput(
|
||||||
label="Response", placeholder="Hmm?", default=response, style=discord.TextStyle.long, max_length=2000
|
label="Response", placeholder="Hmm?", default=response, style=discord.TextStyle.long, max_length=2000
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
Loading…
Reference in New Issue