回答編集履歴
1
コードのミスを修正
answer
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
そしてasync/awaitを使うと、もう少しシンプルになります
|
40
40
|
|
41
41
|
```js
|
42
|
-
client.on('message', message => {
|
42
|
+
client.on('message', async message => {
|
43
43
|
const file = message.attachments.first()
|
44
44
|
|
45
45
|
if (!file) return
|