fix(art): testing fix to dynamicitem not being detected
Some checks failed
Pylint / Pylint (3.11) (push) Failing after 39s

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

View file

@ -80,7 +80,7 @@ class Art(commands.Cog):
response_str += "Art submission channel not set." response_str += "Art submission channel not set."
await ctx.send(response_str) 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: def __init__(self, interaction_id: int, msg: discord.Message, bot) -> None:
super().__init__( super().__init__(
discord.ui.Button( discord.ui.Button(