Skip to content

Commit f185070

Browse files
committed
Add comment for skipped arguments
1 parent 3c9f7ac commit f185070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botcore/utils/cooldown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def decorator(func: Callable[P, Awaitable[R]]) -> Callable[P, Awaitable[R]]:
165165

166166
@command_wraps(func)
167167
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
168-
arg_tuple = (*args[2:], *kwargs.items())
168+
arg_tuple = (*args[2:], *kwargs.items()) # skip self and ctx from the command
169169
ctx = typing.cast("Context[BotBase]", args[1])
170170
channel = ctx.channel
171171

0 commit comments

Comments
 (0)