Skip to content

Commit

Permalink
docs: added warning about message-intent
Browse files Browse the repository at this point in the history
  • Loading branch information
theMultitude committed Aug 5, 2024
1 parent add030f commit 4c01df1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Binary file added docs/images/discord-message-content-intent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/oracle-node/discord-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ Example response:

### Retrieve Messages from a Discord Channel

> **Important**: To retrieve message content, you must toggle "Message Content Intent" in the Discord Developer Portal under the `Bot` section.
>
> ![Message Content Intent](../images/discord-message-content-intent.png)
The `/data/discord/channels/{channelID}/messages` endpoint retrieves messages from a specified Discord channel.

- **Endpoint:** `/data/discord/channels/{channelID}/messages`
Expand Down
4 changes: 4 additions & 0 deletions docs/oracle-node/discord-sentiment.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ The Discord sentiment analysis feature extends the Masa Node's capabilities to i

The sentiment analysis process begins by collecting Discord messages based on specific channel IDs, followed by sentiment evaluation using the chosen language models. The system is compatible with a variety of models, such as Claude and GPT variants, ensuring versatile and robust sentiment analysis.

> **Important**: To retrieve message content, you must toggle "Message Content Intent" in the Discord Developer Portal under the `Bot` section.
>
> ![Message Content Intent](../images/discord-message-content-intent.png)
### Models

```go
Expand Down
8 changes: 6 additions & 2 deletions docs/worker-node/discord-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ To start processing Discord data requests, you need to retrieve your Discord bot

2. Log in with your Discord account credentials.

3. Click on the "New Application" button. Give your application a name and confirm the creation. ![Create a New Application](../images/discord-create-a-new-application.png)
3. Click on the "New Application" button. Give your application a name and confirm the creation.

> ![Create a New Application](../images/discord-create-a-new-application.png)
4. Navigate to the "Bot" tab on the left-hand side and click on "Reset Token".

5. Under the "TOKEN" section, click on "Copy" to get your bot token. ![Copy Token](../images/discord-copy-bot-token.png)
5. Under the "TOKEN" section, click on "Copy" to get your bot token.

> ![Copy Token](../images/discord-copy-bot-token.png)
### Adding Discord Credentials

Expand Down

0 comments on commit 4c01df1

Please sign in to comment.