fix(rmenus): Update msg data from origin message.

This commit is contained in:
2023-09-29 16:13:24 +03:00
parent 5f93e13469
commit eda2b92967
3 changed files with 17 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ async def rolemenu_ctxcmd(interaction: discord.Interaction, message: discord.Mes
else:
menu = await RoleMenu.fetch(self.bot, menuid)
menu._message = message
await menu.update_raw()
# Open the editor
editor = MenuEditor(self.bot, menu, callerid=interaction.user.id)
@@ -895,6 +896,7 @@ class RoleMenuCog(LionCog):
)).format(name=name)
)
await target.fetch_message()
await target.update_raw()
# Parse provided options
reposting = channel is not None