Skip to content

Commit

Permalink
docs: clarify intents for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
i0bs committed Aug 8, 2023
1 parent ebebb07 commit 421811d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/Guides/20 Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 421811d

Please sign in to comment.