質問編集履歴

3

書式の改善

2021/12/21 07:33

投稿

poketatsu
poketatsu

スコア19

test CHANGED
File without changes
test CHANGED
@@ -44,9 +44,15 @@
44
44
 
45
45
  [Symbol(code)]: 'CLIENT_MISSING_INTENTS'
46
46
 
47
+ ```
48
+
47
- #該当のコード
49
+ ##該当のコード
50
+
51
+
48
52
 
49
53
  ```ここに言語を入力
54
+
55
+ コード
50
56
 
51
57
  // coding:UTF-8
52
58
 
@@ -108,6 +114,4 @@
108
114
 
109
115
 
110
116
 
111
-
112
-
113
117
  ```

2

誤字

2021/12/21 07:33

投稿

poketatsu
poketatsu

スコア19

test CHANGED
File without changes
test CHANGED
@@ -12,35 +12,37 @@
12
12
 
13
13
  ```ここに言語を入力
14
14
 
15
- message.channel.send(` ${role2.name} : ${role2.members.size}`)
15
+ ubuntu@os3-388-27077:~$ cd DiscordBot
16
16
 
17
+ ubuntu@os3-388-27077:~/DiscordBot$ node test.js
18
+
19
+ /home/ubuntu/node_modules/discord.js/src/client/Client.js:544
20
+
21
+ throw new TypeError('CLIENT_MISSING_INTENTS');
22
+
17
- ^
23
+ ^
18
24
 
19
25
 
20
26
 
21
- TypeError: Cannot read properties of undefined (reading 'name')
27
+ TypeError [CLIENT_MISSING_INTENTS]: Valid intents must be provided for the Client.
22
28
 
23
- at Client.<anonymous> (C:\Users\hopef\Desktop\勉強\member.js:26:33)
29
+ at Client._validateOptions (/home/ubuntu/node_modules/discord.js/src/client/Client.js:544:13)
24
30
 
25
- at Client.emit (node:events:390:28)
31
+ at new Client (/home/ubuntu/node_modules/discord.js/src/client/Client.js:73:10) at Object.<anonymous> (/home/ubuntu/DiscordBot/test.js:7:16)
26
32
 
27
- at MessageCreateAction.handle (C:\Users\hopef\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
33
+ at Module._compile (node:internal/modules/cjs/loader:1101:14)
28
34
 
29
- at Object.module.exports [as MESSAGE_CREATE] (C:\Users\hopef\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
35
+ at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
30
36
 
31
- at WebSocketManager.handlePacket (C:\Users\hopef\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
37
+ at Module.load (node:internal/modules/cjs/loader:981:32)
32
38
 
33
- at WebSocketShard.onPacket (C:\Users\hopef\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
39
+ at Function.Module._load (node:internal/modules/cjs/loader:822:12)
34
40
 
35
- at WebSocketShard.onMessage (C:\Users\hopef\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
41
+ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
36
42
 
37
- at WebSocket.onMessage (C:\Users\hopef\node_modules\ws\lib\event-target.js:132:16)
43
+ at node:internal/main/run_main_module:17:47 {
38
44
 
39
- at WebSocket.emit (node:events:390:28)
45
+ [Symbol(code)]: 'CLIENT_MISSING_INTENTS'
40
-
41
- at Receiver.receiverOnMessage (C:\Users\hopef\node_modules\ws\lib\websocket.js:834:20)
42
-
43
- ```
44
46
 
45
47
  #該当のコード
46
48
 

1

脱字

2021/12/21 00:29

投稿

poketatsu
poketatsu

スコア19

test CHANGED
File without changes
test CHANGED
@@ -41,6 +41,8 @@
41
41
  at Receiver.receiverOnMessage (C:\Users\hopef\node_modules\ws\lib\websocket.js:834:20)
42
42
 
43
43
  ```
44
+
45
+ #該当のコード
44
46
 
45
47
  ```ここに言語を入力
46
48