File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
interactions/ext/prefixed_commands Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 44
55from interactions .client .client import Client
66from interactions .client .mixins .send import SendMixin
7+ from interactions .models .discord .channel import TYPE_MESSAGEABLE_CHANNEL
78from interactions .models .discord .embed import Embed
89from interactions .models .discord .file import UPLOADABLE_TYPE
910from interactions .models .discord .message import Message
@@ -62,6 +63,11 @@ def message(self) -> Message:
6263 """The message that invoked this context."""
6364 return self ._message
6465
66+ @property
67+ def channel (self ) -> TYPE_MESSAGEABLE_CHANNEL :
68+ """The channel this context was invoked in."""
69+ return self .message .channel
70+
6571 @property
6672 def invoke_target (self ) -> str :
6773 """The name of the command to be invoked."""
You can’t perform that action at this time.
0 commit comments