1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00

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

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 demonstrates the most simple needs; in most cases, bots should use the state or
the bot router. 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) ### [Undeleter](https://github.com/diamondburned/arikawa/tree/v3/0-examples/undeleter)
A slightly more complicated example. This bot uses a local state to cache 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), PreHandler calls all handlers that are registered (separately from the session),
calling them before the state is updated. 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 ### Bare Minimum Messaging Example
The least amount of code recommended to have a bot that logs all messages to The least amount of code recommended to have a bot that logs all messages to