From ba1057ec31500c08b3302467961c413e0c081722 Mon Sep 17 00:00:00 2001 From: diamante0018 Date: Mon, 5 Oct 2026 08:10:07 +0200 Subject: [PATCH] fix: new intents --- README.md | 8 ++++++++ aw.py | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9037edf..ed5b243 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,11 @@ Contributions are welcome! Please follow the guidelines below: - Sign [AlterWare CLA](https://alterware.dev/cla) and send a pull request or email your patch at patches@alterware.dev - Make sure that PRs have only one commit, and deal with one issue only + +## Discord gateway intents + +The bot explicitly enables only the gateway intents it uses: guilds, members, +guild and DM messages, message content, guild reactions, and voice states. +Enable the **Server Members Intent** and **Message Content Intent** under +**Developer Portal > Application > Bot > Privileged Gateway Intents**. The +other enabled intents are not privileged. diff --git a/aw.py b/aw.py index 52a9372..ce881df 100644 --- a/aw.py +++ b/aw.py @@ -12,7 +12,14 @@ BOT_LOG = 1112049391482703873 GENERAL_CHANNEL = 1110531063744303138 OFFTOPIC_CHANNEL = 1112048063448617142 -intents = discord.Intents.all() +intents = discord.Intents.none() +intents.guilds = True +intents.members = True +intents.guild_messages = True +intents.dm_messages = True +intents.message_content = True +intents.guild_reactions = True +intents.voice_states = True bot = commands.Bot(command_prefix="!", intents=intents) # Load environment variables from .env file (if it exists)