fix channel members tool, add debug commands

This commit is contained in:
2026-05-25 12:15:58 -04:00
parent 7a1ba05068
commit 243475db8f
4 changed files with 286 additions and 13 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ def get_channel_members_impl(channel: Any) -> str:
"""
try:
members = channel.members
members = getattr(channel.guild, "members", None)
if not members:
return "No members found in this channel."
@@ -55,7 +55,7 @@ def get_channel_members_impl(channel: Any) -> str:
getattr(m, "display_name", "") or getattr(m, "name", "")
).lower(),
):
lines.append(f" - {_format_member(member)}")
lines.append(f"- {_format_member(member)}")
return "\n".join(lines)
except Exception: