回答編集履歴

1

回答欄のコードが見ずらいのでこちらに追記します。

2021/06/22 12:51

投稿

deo_deo
deo_deo

スコア198

test CHANGED
@@ -55,3 +55,61 @@
55
55
  });
56
56
 
57
57
  ```
58
+
59
+
60
+
61
+ --
62
+
63
+ 追記
64
+
65
+
66
+
67
+ ```
68
+
69
+ async function heyheyhey() {
70
+
71
+ return steam.getUserSummary("USER_ID").then(summary => {
72
+
73
+ console.log('getsummary');
74
+
75
+ var content = {
76
+
77
+ embed: {
78
+
79
+ author: {
80
+
81
+ name: "Author name",
82
+
83
+ icon_url: summary.avatar.small
84
+
85
+ },
86
+
87
+ description: 'description'
88
+
89
+ }
90
+
91
+ };
92
+
93
+ console.log('set url');
94
+
95
+ return content;
96
+
97
+ });
98
+
99
+ }
100
+
101
+
102
+
103
+ client.on('ready',() => {
104
+
105
+ heyheyhey().then(content => {
106
+
107
+ client.channels.cache.get(chid_main).send(content);
108
+
109
+ console.log('send message');
110
+
111
+ });
112
+
113
+ });
114
+
115
+ ```