Skip to content

Commit 755fa92

Browse files
committed
Fix URL buttons context processing
1 parent 83937fe commit 755fa92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/dpy_overrides.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_component(self, custom_id: int) -> typing.Optional[dict]:
2323
"""
2424
for row in self.components:
2525
for component in row["components"]:
26-
if component["custom_id"] == custom_id:
26+
if "custom_id" in component and component["custom_id"] == custom_id:
2727
return component
2828

2929

0 commit comments

Comments
 (0)