Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 6234cd9

Browse files
committed
fixed NoneType is not iterable
1 parent 0749355 commit 6234cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_ui/slash/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def __init__(self, command_type, callback, name=None, description=None, options=
368368

369369
callback_params = inspect.signature(callback).parameters
370370
if self.options is not None:
371-
for op in options:
371+
for op in self.options:
372372
if callback_params.get(op.name) is None:
373373
raise MissingOptionParameter(op.name)
374374
param = callback_params[op.name]

0 commit comments

Comments
 (0)