mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 23:43:57 +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:
|
### Let's also look at an example from Discord.js:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
client.on("message", (msg) => {
|
client.on("message", async (msg) => {
|
||||||
if (msg.author.bot) return;
|
if (msg.author.bot) return;
|
||||||
|
|
||||||
if (msg.content === "ping") {
|
if (msg.content === "ping") {
|
||||||
|
|||||||
Reference in New Issue
Block a user