Skip to content

Commit 8194d64

Browse files
committed
rename cog.py InteractionContext occurrences to the new name
1 parent c071d08 commit 8194d64

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

discord/cog.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from .commands.commands import _BaseCommand
3737

3838
if TYPE_CHECKING:
39-
from .commands import InteractionContext, ApplicationCommand
39+
from .commands import ApplicationContext, ApplicationCommand
4040

4141
__all__ = (
4242
'CogMeta',
@@ -358,7 +358,7 @@ def cog_unload(self) -> None:
358358
pass
359359

360360
@_cog_special_method
361-
def bot_check_once(self, ctx: InteractionContext) -> bool:
361+
def bot_check_once(self, ctx: ApplicationContext) -> bool:
362362
"""A special method that registers as a :meth:`.Bot.check_once`
363363
check.
364364
@@ -368,7 +368,7 @@ def bot_check_once(self, ctx: InteractionContext) -> bool:
368368
return True
369369

370370
@_cog_special_method
371-
def bot_check(self, ctx: InteractionContext) -> bool:
371+
def bot_check(self, ctx: ApplicationContext) -> bool:
372372
"""A special method that registers as a :meth:`.Bot.check`
373373
check.
374374
@@ -378,7 +378,7 @@ def bot_check(self, ctx: InteractionContext) -> bool:
378378
return True
379379

380380
@_cog_special_method
381-
def cog_check(self, ctx: InteractionContext) -> bool:
381+
def cog_check(self, ctx: ApplicationContext) -> bool:
382382
"""A special method that registers as a :func:`~discord.ext.commands.check`
383383
for every command and subcommand in this cog.
384384
@@ -388,7 +388,7 @@ def cog_check(self, ctx: InteractionContext) -> bool:
388388
return True
389389

390390
@_cog_special_method
391-
async def cog_command_error(self, ctx: InteractionContext, error: Exception) -> None:
391+
async def cog_command_error(self, ctx: ApplicationContext, error: Exception) -> None:
392392
"""A special method that is called whenever an error
393393
is dispatched inside this cog.
394394
@@ -407,7 +407,7 @@ async def cog_command_error(self, ctx: InteractionContext, error: Exception) ->
407407
pass
408408

409409
@_cog_special_method
410-
async def cog_before_invoke(self, ctx: InteractionContext) -> None:
410+
async def cog_before_invoke(self, ctx: ApplicationContext) -> None:
411411
"""A special method that acts as a cog local pre-invoke hook.
412412
413413
This is similar to :meth:`.Command.before_invoke`.
@@ -422,7 +422,7 @@ async def cog_before_invoke(self, ctx: InteractionContext) -> None:
422422
pass
423423

424424
@_cog_special_method
425-
async def cog_after_invoke(self, ctx: InteractionContext) -> None:
425+
async def cog_after_invoke(self, ctx: ApplicationContext) -> None:
426426
"""A special method that acts as a cog local post-invoke hook.
427427
428428
This is similar to :meth:`.Command.after_invoke`.

0 commit comments

Comments
 (0)