Skip to content

Diagnostics & Best Practices

Diagnostics Reference Table

SymptomProbable CauseCorrective Action
{cd:5} printed as text in chatUsed colon instead of parenthesesUse {cd(5)} or {cooldown(5)}
Expected property name in JSONInvalid string or special character in embedWrap conditionals inside {embed(property):...}
Tag not respondingBot missing channel send permissionsGrant Send Messages and Embed Links permissions
Audio actions not triggeringUser not in voice channelJoin a voice channel or add {permission(voice):true}
Else branch always executesFalsy comparison stringUse explicit {if({player.playing}==true):...|...}

Best Practices

  1. Test in Private Channel: Always test complex tags in a dedicated staff or bot-testing channel before server-wide rollout.
  2. Apply Sensible Cooldowns: Protect your bot from rate limits by attaching {cooldown(3)} to resource-intensive commands.
  3. Handle Idle Player State: Always account for cases where {player.playing} is false.