From 37b5f50a7df44cf1caa646c3a043c49952031b4a Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 28 Nov 2024 19:07:00 +0100 Subject: [PATCH] :adhesive_bandage: Fix wrong `stacklevel` for deprecation warning. --- discord/interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/interactions.py b/discord/interactions.py index 61f867753d..c341314847 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -320,7 +320,7 @@ def is_component(self) -> bool: return self.type == InteractionType.component @utils.cached_slot_property("_cs_channel") - @utils.deprecated("Interaction.channel", "2.7") + @utils.deprecated("Interaction.channel", "2.7", stacklevel=4) def cached_channel(self) -> InteractionChannel | None: """The cached channel the interaction was sent from. DM channels are not resolved. These are :class:`PartialMessageable` instead.