回答編集履歴
1
サンプルを追記
answer
CHANGED
@@ -17,4 +17,23 @@
|
|
17
17
|
"ID": "ユーザー名",
|
18
18
|
"ID": "ユーザー名"
|
19
19
|
}
|
20
|
+
```
|
21
|
+
|
22
|
+
## サンプル(17:30ごろ追記)
|
23
|
+
```js
|
24
|
+
const config = require('./config.json');
|
25
|
+
|
26
|
+
if (message.content === '特定の言語') {
|
27
|
+
message.guild.channels.cache
|
28
|
+
.filter(ch => ch.name === '特定のチャンネル')
|
29
|
+
.forEach(ch => ch.send('いらっしゃいませ、' + config[message.author.id] + 'さん'));
|
30
|
+
}
|
31
|
+
```
|
32
|
+
|
33
|
+
config.json
|
34
|
+
```js
|
35
|
+
{
|
36
|
+
"723052392911863858": "名無し太郎",
|
37
|
+
"755774191613247568": "名無し花子",
|
38
|
+
}
|
20
39
|
```
|