]> git.localhorst.tv Git - alttp.git/commitdiff
request full guild member access
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 29 Aug 2022 13:56:56 +0000 (15:56 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 29 Aug 2022 13:56:56 +0000 (15:56 +0200)
app/Console/Commands/DiscordBotCommand.php

index 9aa29ae59619e5a32bd4f5f711e211e47b85b0bd..9493ba32d3cff115c7ad9ef4cbab067206ab8ef5 100644 (file)
@@ -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'),
                ]);