質問編集履歴
1
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,9 +24,87 @@
|
|
24
24
|
|
25
25
|
```js
|
26
26
|
|
27
|
-
cons
|
27
|
+
client.on("messageReactionAdd", async (messageReaction, user) => {
|
28
28
|
|
29
|
+
if (messageReaction.message.guild.id === "804360359321272321") {
|
30
|
+
|
31
|
+
const mes = messageReaction.message;
|
32
|
+
|
33
|
+
if (messageReaction.emoji.name == "????") {
|
34
|
+
|
35
|
+
good.set(messageReaction.message.id, messageReaction.message.channel.id);
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
const react = (reaction, user) => reaction.emoji.name === "????";
|
40
|
+
|
29
|
-
|
41
|
+
const collector = messageReaction.message.createReactionCollector(react);
|
42
|
+
|
43
|
+
if (messageReaction.message.id !== good ) {
|
44
|
+
|
45
|
+
client.channels.cache
|
46
|
+
|
47
|
+
.get("822030325961588816")
|
48
|
+
|
49
|
+
.send(
|
50
|
+
|
51
|
+
new Discord.MessageEmbed()
|
52
|
+
|
53
|
+
.setAuthor(
|
54
|
+
|
55
|
+
messageReaction.message.author.tag,
|
56
|
+
|
57
|
+
messageReaction.message.author.avatarURL()
|
58
|
+
|
59
|
+
)
|
60
|
+
|
61
|
+
.setDescription(
|
62
|
+
|
63
|
+
"????:" +
|
64
|
+
|
65
|
+
collector +
|
66
|
+
|
67
|
+
"\n" +
|
68
|
+
|
69
|
+
messageReaction.message.content +
|
70
|
+
|
71
|
+
"\n\n[本文へjump!](https://discord.com/channels/" +
|
72
|
+
|
73
|
+
messageReaction.message.guild.id +
|
74
|
+
|
75
|
+
"/" +
|
76
|
+
|
77
|
+
messageReaction.message.channel.id +
|
78
|
+
|
79
|
+
"/" +
|
80
|
+
|
81
|
+
messageReaction.message.id +
|
82
|
+
|
83
|
+
")"
|
84
|
+
|
85
|
+
)
|
86
|
+
|
87
|
+
.setColor("0x82c93a")
|
88
|
+
|
89
|
+
.setImage(
|
90
|
+
|
91
|
+
messageReaction.message.attachments.first()
|
92
|
+
|
93
|
+
? messageReaction.message.attachments.first().url
|
94
|
+
|
95
|
+
: null
|
96
|
+
|
97
|
+
)
|
98
|
+
|
99
|
+
);
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
});
|
30
108
|
|
31
109
|
```
|
32
110
|
|