回答編集履歴
1
一部のコードの修正
test
CHANGED
@@ -58,7 +58,17 @@
|
|
58
58
|
|
59
59
|
```
|
60
60
|
|
61
|
-
var itembox = (await inventory.get(message.author.id) || [])
|
61
|
+
var load_itembox = (await inventory.get(message.author.id) || [])
|
62
|
+
|
63
|
+
try {
|
64
|
+
|
65
|
+
var itembox = JSON.parse(load_itembox)
|
66
|
+
|
67
|
+
} catch (error) {
|
68
|
+
|
69
|
+
var itembox = load_itembox
|
70
|
+
|
71
|
+
}
|
62
72
|
|
63
73
|
```
|
64
74
|
|