Skip to content

Commit 421811d

Browse files
committed
docs: clarify intents for extensions
1 parent ebebb07 commit 421811d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/Guides/20 Extensions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ For example, you can see the difference of a bot with and without extensions:
1313
??? Hint "Examples:"
1414
=== "Without Extensions"
1515
```python
16-
from interactions import ActionRow, Button, ButtonStyle, Client, listen, slash_command
16+
from interactions import ActionRow, Button, ButtonStyle, Client, Intents, listen, slash_command
1717
from interactions.api.events import Component, GuildJoin, MessageCreate, Startup
1818

19-
bot = Client()
19+
bot = Client(intents=Intents.DEFAULT | Intents.MESSAGE_CONTENT)
2020

2121

2222
@listen(Startup)
@@ -79,10 +79,10 @@ For example, you can see the difference of a bot with and without extensions:
7979
=== "With Extensions"
8080
```python
8181
# File: `main.py`
82-
from interactions import Client, listen
82+
from interactions import Client, Intents, listen
8383
from interactions.api.events import Component, GuildJoin, MessageCreate, Startup
8484

85-
bot = Client()
85+
bot = Client(intents=Intents.DEFAULT | Intents.MESSAGE_CONTENT)
8686

8787

8888
@listen(Startup)

0 commit comments

Comments
 (0)