We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83937fe commit 755fa92Copy full SHA for 755fa92
discord_slash/dpy_overrides.py
@@ -23,7 +23,7 @@ def get_component(self, custom_id: int) -> typing.Optional[dict]:
23
"""
24
for row in self.components:
25
for component in row["components"]:
26
- if component["custom_id"] == custom_id:
+ if "custom_id" in component and component["custom_id"] == custom_id:
27
return component
28
29
0 commit comments