mirror of
https://github.com/Paillat-dev/pycord-reactive-views.git
synced 2026-01-02 01:06:18 +00:00
🐛 Fix custom_id always required
This commit is contained in:
@@ -43,10 +43,8 @@ class ColourSelector(ReactiveView):
|
||||
for colour in colors
|
||||
],
|
||||
placeholder="Select a colour",
|
||||
custom_id="colour_select",
|
||||
)
|
||||
self.shade_select = ReactiveSelect(
|
||||
custom_id="shade_select",
|
||||
placeholder="Select a shade",
|
||||
options=ReactiveValue(
|
||||
lambda: [
|
||||
|
||||
@@ -51,6 +51,7 @@ class ReactiveButton(discord.ui.Button, Reactive): # pyright: ignore[reportUnsa
|
||||
self.add_reactive("url", url)
|
||||
self.add_reactive("emoji", emoji)
|
||||
self.add_reactive("row", row)
|
||||
if custom_id:
|
||||
self.custom_id = custom_id
|
||||
self.sku_id = sku_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user