=== FAQ === ``Class 'X' not found`` ====================== You most likely haven't imported the class that you are trying to use. Please check the `class reference `_ and search for the class that you are trying to use. Add an import statement at the top of the file like shown on the right. .. code-block:: php `_. Note that you will need to verify your bot if you use this intent and pass 100 guilds. You also need to enable the ``loadAllMembers`` option in your code, as shown on the right. .. code-block:: php $discord = new Discord([ 'token' => '...', 'loadAllMembers' => true, // Enable this option ]); If you are using DiscordPHP Version 6 or greater, you need to enable the ``GUILD_MEMBERS`` intent as well as the ``loadAllMembers`` option. The shown code will enable all intents minus the ``GUILD_PRESENCES`` intent (which is also priviliged). .. code-block:: php $discord = new Discord([ 'token' => '...', 'loadAllMembers' => true, 'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS // Enable the `GUILD_MEMBERS` intent ])