Intents allow your bot to subscribe to specific buckets of events. You must pass an intents object to the constructor of discord.Client or commands.Bot.
If no intents are provided, the library defaults to all intents being enabled except the privileged intents: Intents.members, Intents.presences, and Intents.message_content.
To use specific intents, you can either use discord.Intents.default() and toggle specific attributes, or instantiate discord.Intents with specific boolean flags.
import discord
# Option 1: Using default and disabling specific ones
intents = discord.Intents.default()
intents.typing = False
intents.presences = False
# Option 2: Explicitly enabling specific intents
intents = discord.Intents(messages=True, guilds=True)
intents.reactions = True
# Apply to Client or Bot
client = discord.Client(intents=intents)
# OR
from discord.ext import commands
bot = commands.Bot(command_prefix='!', intents=intents)