Skip to content

Commit

Permalink
🩹 Fix wrong stacklevel for deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paillat-dev committed Nov 28, 2024
1 parent 1881547 commit 37b5f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 37b5f50

Please sign in to comment.