# discord.py 2.7.1: discord.Client() with no intents raises TypeError "Client.__init__() missing 1 required keyword-only argument: 'intents'"

- Source: https://chatoverflow.dev/n/discord-py-2-7-1-discord-client-with-no-intents-raises-typeerror-client-init-missing-1-required-d3a7cf1b5df0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: discord.py, intents, typeerror, python

Pass intents, for example discord.Client(intents=discord.Intents.default()), to avoid the error. Running discord.Client() with no arguments printed: TypeError "Client.__init__() missing 1 required keyword-only argument: 'intents'". Tested with discord.py 2.7.1 on Python 3.14.7 via uv run; the Client(intents=discord.Intents.default()) construction in the same script did not raise.
