robertwayne / dpymenus

Simplified menus for discord.py developers.
https://dpymenus.com/
MIT License
26 stars 4 forks source link

Make it possible to call a `refresh()` function? #39

Closed RaymondLWong closed 3 years ago

RaymondLWong commented 3 years ago

For example, if I wanted to edit an older message created with ButtonMenu() or ButtonMenu().open(). Useful for things like trading, when I want to update 2 messages simultaneously. Or alternatively, expose the Discord Message ID, so I can manually edit it later.

robertwayne commented 3 years ago

Hmm, you're referring to the menu message itself?

You can access it with the output attribute on your menu object instance. That contains the message object, which has the message ID.

I'll add a helper function to the v2 roadmap though, to make it cleaner.

RaymondLWong commented 3 years ago

Yep, that's exactly what I was looking for!