From: Daniel Karbach Date: Mon, 29 Aug 2022 13:56:56 +0000 (+0200) Subject: request full guild member access X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=b5ab4afc3b152a0b39dc4c617a660653758a9f77;p=alttp.git request full guild member access --- diff --git a/app/Console/Commands/DiscordBotCommand.php b/app/Console/Commands/DiscordBotCommand.php index 9aa29ae..9493ba3 100644 --- a/app/Console/Commands/DiscordBotCommand.php +++ b/app/Console/Commands/DiscordBotCommand.php @@ -14,6 +14,7 @@ use Discord\Parts\Guild\Guild; use Discord\Parts\Guild\Role; use Discord\Parts\User\Activity; use Discord\WebSockets\Event; +use Discord\WebSockets\Intents; use Illuminate\Console\Command; use Monolog\Handler\StreamHandler; use Monolog\Logger; @@ -45,6 +46,7 @@ class DiscordBotCommand extends Command $logger = new Logger('DiscordBot'); $logger->pushHandler(new StreamHandler('php://stdout', Logger::INFO)); $discord = new Discord([ + 'intents' => Intents::getDefaultIntents() | Intents::GUILD_MEMBERS, 'logger' => $logger, 'token' => config('discord.token'), ]);