Skip to content

Commit 9c37624

Browse files
authored
add custom_id attribute to PaginatorMenu to fix persistent PageGroup bug (#1106)
1 parent 6474f26 commit 9c37624

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

discord/ext/pages/pagination.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ def __init__(
776776
self,
777777
page_groups: List[PageGroup],
778778
placeholder: str = "Select Page Group",
779+
custom_id: Optional[str] = None,
779780
):
780781
self.page_groups = page_groups
781782
self.paginator: Optional[Paginator] = None
@@ -788,7 +789,7 @@ def __init__(
788789
)
789790
for page_group in self.page_groups
790791
]
791-
super().__init__(placeholder=placeholder, max_values=1, min_values=1, options=opts)
792+
super().__init__(placeholder=placeholder, max_values=1, min_values=1, options=opts, custom_id=custom_id)
792793

793794
async def callback(self, interaction: discord.Interaction):
794795
selection = self.values[0]

0 commit comments

Comments
 (0)