@@ -55,7 +55,7 @@ class ApplicationCommandMixin:
5555
5656 Attributes
5757 -----------
58- app_commands : :class:`dict`
58+ application_commands : :class:`dict`
5959 A mapping of command id string to :class:`.ApplicationCommand` objects.
6060 pending_application_commands: :class:`list`
6161 A list of commands that have been added but not yet registered. This is read-only and is modified via other
@@ -65,7 +65,7 @@ class ApplicationCommandMixin:
6565 def __init__ (self , * args , ** kwargs ) -> None :
6666 super ().__init__ (* args , ** kwargs )
6767 self ._pending_application_commands = []
68- self .app_commands = {}
68+ self .application_commands = {}
6969
7070 @property
7171 def pending_application_commands (self ):
@@ -106,7 +106,7 @@ def remove_application_command(self, command: ApplicationCommand) -> Optional[Ap
106106 The command that was removed. If the name is not valid then
107107 ``None`` is returned instead.
108108 """
109- return self .app_commands .pop (command .id )
109+ return self .application_commands .pop (command .id )
110110
111111 async def sync_commands (self ) -> None :
112112 """|coro|
@@ -176,7 +176,7 @@ async def register_commands(self) -> None:
176176 else :
177177 for i in cmds :
178178 cmd = get (self .to_register , name = i ["name" ], description = i ["description" ], type = i ['type' ])
179- self .app_commands [i ["id" ]] = cmd
179+ self .application_commands [i ["id" ]] = cmd
180180
181181 cmds = await self .http .bulk_upsert_global_commands (self .user .id , commands )
182182
@@ -187,7 +187,7 @@ async def register_commands(self) -> None:
187187 description = i ["description" ],
188188 type = i ["type" ],
189189 )
190- self .app_commands [i ["id" ]] = cmd
190+ self .application_commands [i ["id" ]] = cmd
191191
192192 async def handle_interaction (self , interaction : Interaction ) -> None :
193193 """|coro|
@@ -201,7 +201,7 @@ async def handle_interaction(self, interaction: Interaction) -> None:
201201 you should invoke this coroutine as well.
202202
203203 This function finds a registered command matching the interaction id from
204- :attr:`.ApplicationCommandMixin.app_commands ` and runs :meth:`ApplicationCommand.invoke` on it. If no matching
204+ :attr:`.ApplicationCommandMixin.application_commands ` and runs :meth:`ApplicationCommand.invoke` on it. If no matching
205205 command was found, it replies to the interaction with a default message.
206206
207207 .. versionadded:: 2.0
@@ -215,7 +215,7 @@ async def handle_interaction(self, interaction: Interaction) -> None:
215215 return
216216
217217 try :
218- command = self .app_commands [interaction .data ["id" ]]
218+ command = self .application_commands [interaction .data ["id" ]]
219219 except KeyError :
220220 self .dispatch ("unknown_command" , interaction )
221221 else :
0 commit comments