Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): Message Content Intent in Migration Guide #1583

Merged
merged 7 commits into from
Aug 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(docs): Intents in Migration Guide
  • Loading branch information
JustaSqu1d committed Aug 20, 2022
commit 3be0b2ceeedcce25c72c0052ee0d324d52f90da9
13 changes: 13 additions & 0 deletions docs/migrating_to_v2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ Webhook Changes

.. _migrating_2_0_thread_introduced:

Intents Required
----------------

:class:`Client` and its subclasses default the ``intents`` argument to be :meth:`Intents.none()`, instead of :meth:`Intents.default()`.
Therefore, you should pass :class:`Intents` to the constructor if you want to use intents.
See :doc:`intents`.


.. code-block:: python

client = discord.Client(intents=discord.Intents.all())
client.run(token)

Threads Introduced
------------------

Expand Down