Skip to content

Commit 37b5f50

Browse files
committed
🩹 Fix wrong stacklevel for deprecation warning.
1 parent 1881547 commit 37b5f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def is_component(self) -> bool:
320320
return self.type == InteractionType.component
321321

322322
@utils.cached_slot_property("_cs_channel")
323-
@utils.deprecated("Interaction.channel", "2.7")
323+
@utils.deprecated("Interaction.channel", "2.7", stacklevel=4)
324324
def cached_channel(self) -> InteractionChannel | None:
325325
"""The cached channel the interaction was sent from.
326326
DM channels are not resolved. These are :class:`PartialMessageable` instead.

0 commit comments

Comments
 (0)