Skip to content

Commit c560dc9

Browse files
committed
change handle_interaction to process_application_commands
1 parent fea696e commit c560dc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async def register_commands(self) -> None:
189189
)
190190
self.application_commands[i["id"]] = cmd
191191

192-
async def handle_interaction(self, interaction: Interaction) -> None:
192+
async def process_application_commands(self, interaction: Interaction) -> None:
193193
"""|coro|
194194
195195
This function processes the commands that have been registered
@@ -328,7 +328,7 @@ async def get_application_context(
328328
329329
Returns the invocation context from the interaction.
330330
331-
This is a more low-level counter-part for :meth:`.handle_interaction`
331+
This is a more low-level counter-part for :meth:`.process_application_commands`
332332
to allow users more fine grained control over the processing.
333333
334334
Parameters
@@ -376,7 +376,7 @@ async def on_connect(self):
376376
await self.register_commands()
377377

378378
async def on_interaction(self, interaction):
379-
await self.handle_interaction(interaction)
379+
await self.process_application_commands(interaction)
380380

381381
async def on_application_command_error(self, context: InteractionContext, exception: DiscordException) -> None:
382382
"""|coro|

0 commit comments

Comments
 (0)