README: Warn against use of messages for bots

This commit is contained in:
diamondburned 2022-10-01 19:37:15 -07:00
parent 219b1d80d6
commit e3e35a9628
No known key found for this signature in database
GPG Key ID: D78C4471CE776659
1 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,9 @@ the console. Run with `BOT_TOKEN="TOKEN" go run .`. This example only
demonstrates the most simple needs; in most cases, bots should use the state or
the bot router.
**Note** that Discord discourages use of bots that do not use the interactions
API, meaning that this example should not be used for bots.
### [Undeleter](https://github.com/diamondburned/arikawa/tree/v3/0-examples/undeleter)
A slightly more complicated example. This bot uses a local state to cache
@ -57,6 +60,9 @@ This example demonstrates the PreHandler feature of the state library.
PreHandler calls all handlers that are registered (separately from the session),
calling them before the state is updated.
**Note** that Discord discourages use of bots that do not use the interactions
API, meaning that this example should not be used for bots.
### Bare Minimum Messaging Example
The least amount of code recommended to have a bot that logs all messages to