Skip to content

Commit e1c76e2

Browse files
committed
fix: properly convert values when using ranges for hybrid commands
1 parent cb0ed98 commit e1c76e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/ext/hybrid_commands/hybrid_slash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __init__(
134134

135135
async def convert(self, ctx: BaseContext, argument: str) -> float | int:
136136
try:
137-
converted: float | int = await maybe_coroutine(self.number_convert, ctx, argument)
137+
converted: float | int = await maybe_coroutine(self.number_convert, argument)
138138

139139
if self.min_value and converted < self.min_value:
140140
raise BadArgument(f'Value "{argument}" is less than {self.min_value}.')

0 commit comments

Comments
 (0)