discord
Installation
SKILL.md
discord — work with the user's Discord account
This skill has two modes, picked automatically by which credential the connector injected. Check the environment first and follow the matching section:
$DISCORD_USER_TOKENis set → User Token (BYOC) mode: full personal-account actions via thescripts/discord_user.pyCLI (list channels, read messages, send / reply). This acts as the user's real account.- only
$DISCORD_TOKENis set → OAuth mode: read-only identity + server list viacurl. Channel messages are not available in this mode.
if [ -n "$DISCORD_USER_TOKEN" ]; then echo "mode: user-token (full)"; \
elif [ -n "$DISCORD_TOKEN" ]; then echo "mode: oauth (read-only)"; \
else echo "no Discord connection — connect at https://studio.acedata.cloud/console/connectors"; fi