Improve autocomplete

This commit is contained in:
Nexus 2024-01-12 17:05:13 +00:00
parent 8cea7f8224
commit b0c25254ea

View file

@ -121,7 +121,7 @@ class ChatHistory:
instance = cog.history
return list(
filter(
lambda v: ctx.value in v, map(
lambda v: (ctx.value or v) in v, map(
lambda d: list(d.keys()),
instance.threads_for(ctx.interaction.user)
)