Skip to content

Commit 0c8a38a

Browse files
committed
Fix factoid all when there are no factoids for a given guild
1 parent 77de9e7 commit 0c8a38a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

techsupport_bot/commands/factoids.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,13 @@ async def app_command_all(
17001700
guild, exclusive_property=property, include_hidden=show_hidden
17011701
)
17021702

1703+
if not factoids:
1704+
embed = auxiliary.prepare_deny_embed(
1705+
"No factoids could be found matching your filter"
1706+
)
1707+
await interaction.response.send_message(embed=embed)
1708+
return
1709+
17031710
aliases = self.build_alias_dict_for_given_factoids(factoids)
17041711

17051712
# If the linx server isn't configured, we must make it a file

0 commit comments

Comments
 (0)