Finally fix list_macros completely (#61)

This commit is contained in:
TSRBerry 2023-06-12 09:45:51 +02:00 committed by GitHub
parent cbd1f55dc3
commit 50c8b11f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ class Macro(Cog):
for key in sorted(macros["macros"].keys()):
message = f"- {key}"
if not macros_only:
if not macros_only and key in macros["aliases"]:
for alias in macros["aliases"][key]:
message += f", {alias}"
macros_formatted.append(message)