mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
content(docs): fix missing async in async/await example
This commit is contained in:
@@ -141,7 +141,7 @@ In this example, we are querying real data from the Rick & Morty API. This API h
|
||||
### Let's also look at an example from Discord.js:
|
||||
|
||||
```js
|
||||
client.on("message", (msg) => {
|
||||
client.on("message", async (msg) => {
|
||||
if (msg.author.bot) return;
|
||||
|
||||
if (msg.content === "ping") {
|
||||
|
||||
Reference in New Issue
Block a user