fix(rmenus): Update reactions on style change.

This commit is contained in:
2023-09-24 11:51:23 +03:00
parent a7663f9267
commit 245b7dbd7a

View File

@@ -508,6 +508,11 @@ class MenuEditor(MessageUI):
await self.refresh(thinking=selection) await self.refresh(thinking=selection)
await self.update_preview() await self.update_preview()
await self.menu.update_message() await self.menu.update_message()
if self.menu.data.menutype is MenuType.REACTION:
try:
await self.menu.update_reactons()
except SafeCancellation:
pass
else: else:
await selection.response.defer(thinking=False) await selection.response.defer(thinking=False)
@@ -596,6 +601,8 @@ class MenuEditor(MessageUI):
await self.refresh(thinking=selection) await self.refresh(thinking=selection)
await self.update_preview() await self.update_preview()
await self.menu.update_message() await self.menu.update_message()
if menutype is MenuType.REACTION:
await self.menu.update_reactons()
else: else:
await selection.response.defer() await selection.response.defer()