回答編集履歴
1
回答欄のコードが見ずらいのでこちらに追記します。
answer
CHANGED
@@ -26,4 +26,33 @@
|
|
26
26
|
console.log('send message');
|
27
27
|
});
|
28
28
|
});
|
29
|
+
```
|
30
|
+
|
31
|
+
--
|
32
|
+
追記
|
33
|
+
|
34
|
+
```
|
35
|
+
async function heyheyhey() {
|
36
|
+
return steam.getUserSummary("USER_ID").then(summary => {
|
37
|
+
console.log('getsummary');
|
38
|
+
var content = {
|
39
|
+
embed: {
|
40
|
+
author: {
|
41
|
+
name: "Author name",
|
42
|
+
icon_url: summary.avatar.small
|
43
|
+
},
|
44
|
+
description: 'description'
|
45
|
+
}
|
46
|
+
};
|
47
|
+
console.log('set url');
|
48
|
+
return content;
|
49
|
+
});
|
50
|
+
}
|
51
|
+
|
52
|
+
client.on('ready',() => {
|
53
|
+
heyheyhey().then(content => {
|
54
|
+
client.channels.cache.get(chid_main).send(content);
|
55
|
+
console.log('send message');
|
56
|
+
});
|
57
|
+
});
|
29
58
|
```
|