fix(counters): Fix counter response period user.

This commit is contained in:
2024-09-30 19:02:06 +10:00
parent 45b57b4eca
commit fc459ac0dd

View File

@@ -35,7 +35,7 @@ def counter_cmd_factory(
async def counter_cmd(cog, ctx: commands.Context, *, args: Optional[str] = None):
userid = int(ctx.author.id)
channelid = int((await ctx.channel.user()).id)
period, start_time = await cog.parse_period(userid, '', default=default_period)
period, start_time = await cog.parse_period(channelid, '', default=default_period)
args = (args or '').strip(" 󠀀 ")
splits = args.split(maxsplit=1)