-
Hello! I need a custom_id per button per message. I have to parse the custom_id so the response to each message is different. Naturally, I'd want this button to be persistent. There is an example on the repo for a DynamicButton/DynamicItem that fits my use-case but it doesn't seem to be included in the current release (#9700). Is there an equivalent for this in the current release? Or perhaps other ways to achieve the same thing? I tried class MyBot(commands.Bot):
...
async def setup_hook(self):
view = MyView()
for custom_id in custom_ids:
view.add_item(MyButton(custom_id))
self.add_view(view)
... Any help or insight is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I would suggest just waiting until dynamic items get released. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
DynamicItem
s have been released on 2.4.0. Haven't personally tried it since we had to change library due to time constraints, but this would've solved our issue.