I'm trying to create a timeout command with the new timeout function here
My code:
@commands.command()
async def timeout(self, ctx, member: discord.Member, time, reason, /):
await member.timeout(until=datetime.timedelta(seconds=int(time)), reason=reason)
I get this error:
TypeError: timeout() got some positional-only arguments passed as keyword arguments: 'until'
I did a research on positional-only arguments, but no luck. Any fix?