Skip to content

Commit

Permalink
feat: throw error for integration_types
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Dec 13, 2024
1 parent 44cb10b commit a5ea89e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions disnake/ext/commands/base_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ def __init__(self, func: CommandCallback, *, name: Optional[str] = None, **kwarg
"See `default_member_permissions` and `contexts` instead."
)

# XXX: remove in next major/minor version
# the parameter was called `integration_types` in earlier stages of the user apps PR.
# since unknown kwargs unfortunately get silently ignored, at least try to warn users
# in this specific case
if "integration_types" in kwargs:
raise TypeError("`integration_types` has been renamed to `install_types`.")

try:
checks = func.__commands_checks__
checks.reverse()
Expand Down

0 comments on commit a5ea89e

Please sign in to comment.