fix(art): testing fix to dynamicitem not being detected

This commit is contained in:
Seaswimmer 2023-12-28 17:00:15 -05:00
parent 5cd6b4cf58
commit a02d9f449f
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -80,7 +80,7 @@ class Art(commands.Cog):
response_str += "Art submission channel not set."
await ctx.send(response_str)
class ApproveButton(discord.ui.DynamicItem[discord.ui.Button], template=r'button:interaction:(?P<id>[0-9]+)'):
class ApproveButton(discord.ui.DynamicItem([discord.ui.Button]), template=r'button:interaction:(?P<id>[0-9]+)'):
def __init__(self, interaction_id: int, msg: discord.Message, bot) -> None:
super().__init__(
discord.ui.Button(