rewrite: Various bug fixes.

This commit is contained in:
2023-05-25 16:45:54 +03:00
parent 0863d13088
commit fe8cf35885
11 changed files with 237 additions and 21 deletions

View File

@@ -191,8 +191,8 @@ class TasklistCog(LionCog):
appcmds.Choice(
name=t(_p(
'argtype:taskid|error:no_matching',
"No tasks matching {partial}!",
)).format(partial=partial),
"No tasks matching '{partial}'!",
)).format(partial=partial[:100]),
value=partial
)
]
@@ -201,7 +201,7 @@ class TasklistCog(LionCog):
appcmds.Choice(name=task_string, value=label)
for label, task_string in matching
]
return options[:25]
return options[:25]
async def is_tasklist_channel(self, channel) -> bool:
if not channel.guild: