Skip to content

Commit f7d0d60

Browse files
authored
Set ApplicationContext attributes
1 parent e00b272 commit f7d0d60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discord/commands/context.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ class ApplicationContext(discord.abc.Messageable):
6969
def __init__(self, bot: Bot, interaction: Interaction):
7070
self.bot = bot
7171
self.interaction = interaction
72+
73+
# below attributes will be set after initialization
7274
self.command: ApplicationCommand = None # type: ignore
75+
self.focused: Option = None # type: ignore
76+
self.value: str = None # type: ignore
77+
self.options: dict = None # type: ignore
78+
7379
self._state: ConnectionState = self.interaction._state
7480

7581
async def _get_channel(self) -> discord.abc.Messageable:

0 commit comments

Comments
 (0)