From a5ea89eb041359189596c2911cd09f46c8dfd7c7 Mon Sep 17 00:00:00 2001 From: shiftinv Date: Fri, 13 Dec 2024 21:48:17 +0100 Subject: [PATCH] feat: throw error for `integration_types` --- disnake/ext/commands/base_core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/disnake/ext/commands/base_core.py b/disnake/ext/commands/base_core.py index a7f75a6c71..9611b6f8b4 100644 --- a/disnake/ext/commands/base_core.py +++ b/disnake/ext/commands/base_core.py @@ -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()