From 907d5e0ee7add2924d8f5ea1a56baaf5251fd727 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 3 Apr 2022 22:57:32 -0400 Subject: [PATCH] Document Forbidden exception in CommandTree.sync --- discord/app_commands/tree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/app_commands/tree.py b/discord/app_commands/tree.py index 8f7a46f10..314ba5d9c 100644 --- a/discord/app_commands/tree.py +++ b/discord/app_commands/tree.py @@ -854,6 +854,8 @@ class CommandTree(Generic[ClientT]): ------- HTTPException Syncing the commands failed. + Forbidden + The client does not have the ``applications.commands`` scope in the guild. ClientException The client does not have an application ID.