You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`We appreciate your question and we'll do our best to help you when we can. Could you please give us more details? Please follow the guidelines in <https://rmx.as/ask> (especially the part about making a <https://rmx.as/repro>) and then we'll try to answer your question.`
174
-
);
173
+
constreply=`Hi ${messageReaction.message.author} 👋\nWe appreciate your question and we'll do our best to help you when we can. Could you please give us more details? Please follow the guidelines in <https://rmx.as/ask> (especially the part about making a <https://rmx.as/repro>) and then we'll try to answer your question.`;
174
+
const{ channel, author, guild, id }=messageReaction.message;
175
+
if(!guild||!channel||!author)return;
176
+
177
+
if(channel.type==="GUILD_TEXT"){
178
+
constthread=awaitchannel.threads.create({
179
+
name: `🧵 Thread for ${author.username}`,
180
+
startMessage: id,
181
+
});
182
+
awaitthread.send(reply);
183
+
awaitthread.send(
184
+
"Feel free to change the thread title to something more descriptive if you like."
185
+
);
186
+
}else{
187
+
awaitmessageReaction.message.reply(reply);
188
+
}
175
189
}
176
-
ask.description=`Replies to the message asking for more details about a question.`;
190
+
ask.description=`Creates a thread for the message and asks for more details about a question. Useful if you know the question needs more details, but you can't commit to replying when they come.`;
const{ channel, author, guild, id }=messageReaction.message;
203
+
if(!guild||!channel||!author)return;
204
+
205
+
if(channel.type==="GUILD_TEXT"){
206
+
constthread=awaitchannel.threads.create({
207
+
name: `🧵 Thread for ${author.username}`,
208
+
startMessage: id,
209
+
});
210
+
awaitthread.send(
211
+
`Hi ${author} 👋\nLet's discuss this further here. Feel free to change the thread title to something more descriptive if you like.`
212
+
);
213
+
}
214
+
}
215
+
thread.description=`Creates a thread for the message. Handy if you know the message needs a thread, but you can't commit to participating in the conversation so you don't want to be the one to create it.`;
0 commit comments