Piecewise

Build chat bots with blocks

D000: Permission denied when querying for a resource (e.g. channel, user, slash commands...).

This error may occur in a few situations.

  1. When accessing a channel you do not have access to
  2. When accessing a server you do not have access to (i.e. the bot is not a member of the server)
  3. When accessing a message you do not have access to (i.e. it is in a channel or server you do not have access to)
  4. When accessing slash commands for a server that has not authorized them. Make sure you have authorized your bot with the “applications.commands” permission. This is covered in the “Your First Bot” tutorial, here.

You can avoid these errors with increased input validation.


Matches exception with text: Missing Access

Having issues? Join us on Discord or ask for help on the Steam forums.