-
-
Notifications
You must be signed in to change notification settings - Fork 478
Milestone
Description
Line: 99
pycord//discord/ext/bridge/core.py
Lines 96 to 106 in 32029fe
| def __init__(self, func, **kwargs): | |
| super().__init__(func, **kwargs) | |
| # TODO: v2.7: Remove backwards support for Option in bridge commands. | |
| for name, option in self.params.items(): | |
| if isinstance(option.annotation, Option) and not isinstance( | |
| option.annotation, BridgeOption | |
| ): | |
| # Warn not to do this | |
| warn_deprecated( | |
| "Using Option for bridge commands", |