From 421811de0994ec4f798de4e91244cbb0c1068532 Mon Sep 17 00:00:00 2001 From: i0bs <41456914+i0bs@users.noreply.github.com> Date: Tue, 8 Aug 2023 10:12:34 -0400 Subject: [PATCH] docs: clarify intents for extensions --- docs/src/Guides/20 Extensions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/Guides/20 Extensions.md b/docs/src/Guides/20 Extensions.md index cbe2a175e..c782f72d7 100644 --- a/docs/src/Guides/20 Extensions.md +++ b/docs/src/Guides/20 Extensions.md @@ -13,10 +13,10 @@ For example, you can see the difference of a bot with and without extensions: ??? Hint "Examples:" === "Without Extensions" ```python - from interactions import ActionRow, Button, ButtonStyle, Client, listen, slash_command + from interactions import ActionRow, Button, ButtonStyle, Client, Intents, listen, slash_command from interactions.api.events import Component, GuildJoin, MessageCreate, Startup - bot = Client() + bot = Client(intents=Intents.DEFAULT | Intents.MESSAGE_CONTENT) @listen(Startup) @@ -79,10 +79,10 @@ For example, you can see the difference of a bot with and without extensions: === "With Extensions" ```python # File: `main.py` - from interactions import Client, listen + from interactions import Client, Intents, listen from interactions.api.events import Component, GuildJoin, MessageCreate, Startup - bot = Client() + bot = Client(intents=Intents.DEFAULT | Intents.MESSAGE_CONTENT) @listen(Startup)