From 0c8a38a63e2fb5d94495166df81f3cd19da7a73f Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Mon, 5 May 2025 18:46:11 -0400 Subject: [PATCH] Fix factoid all when there are no factoids for a given guild --- techsupport_bot/commands/factoids.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/techsupport_bot/commands/factoids.py b/techsupport_bot/commands/factoids.py index 07ac00e7..f8fe8c38 100644 --- a/techsupport_bot/commands/factoids.py +++ b/techsupport_bot/commands/factoids.py @@ -1700,6 +1700,13 @@ async def app_command_all( guild, exclusive_property=property, include_hidden=show_hidden ) + if not factoids: + embed = auxiliary.prepare_deny_embed( + "No factoids could be found matching your filter" + ) + await interaction.response.send_message(embed=embed) + return + aliases = self.build_alias_dict_for_given_factoids(factoids) # If the linx server isn't configured, we must make it a file