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
Based on code review & feedback:
- Drop explicit `.toString()` in the template.
- Add a link to the how-to-get-help channel.
- Be explicit that code blocks > screenshots.
- Be explicit that it may be impossible to reproduce in the playground.
Copy file name to clipboardExpand all lines: src/modules/helpchan.ts
+11-5
Original file line number
Diff line number
Diff line change
@@ -42,14 +42,20 @@ This channel will be dedicated to answering your question only. Others will try
42
42
For more tips, check out StackOverflow's guide on **[asking good questions](https://stackoverflow.com/help/how-to-ask)**.
43
43
`;
44
44
45
+
// The "empty" line has a braille pattern blank unicode character, in order to
46
+
// achieve a leading newline, since normally whitespace is stripped. This is a
47
+
// hack, but it works even on a system without the fonts to display Discord
48
+
// emoji, so it should work everywhere. https://www.compart.com/en/unicode/U+2800
45
49
constoccupiedMessage=(asker: User)=>`
46
-
**This channel is claimed by ${asker.toString()}.**
47
-
It is dedicated to answering their questions only.
50
+
⠀
51
+
**This channel is claimed by ${asker}.**
52
+
It is dedicated to answering their questions only. More info: <#${askHelpChannelId}>
48
53
49
-
**${asker.toString()} You'll get better and faster answers if you:**
54
+
**${asker} You'll get better and faster answers if you:**
50
55
• Describe the context. What are you trying to accomplish?
51
-
• Copy-paste a short snippet (5-15 lines) that includes the problem. Start code blocks with \`\\\`\`ts for syntax highlighting.
52
-
• Try to reproduce your problem in the **[TypeScript Playground](https://www.typescriptlang.org/play)**.
56
+
• Include any error messages, and the code that produce them (5-15 lines).
57
+
• Use code blocks, not screenshots. Start with ${'```ts'} for syntax highlighting.
58
+
• Also reproduce the issue in the **[TypeScript Playground](https://www.typescriptlang.org/play)**, if possible.
53
59
54
60
Usually someone will try to answer and help solve the issue within a few hours. If not, and you have followed the bullets above, you may ping the <@&${trustedRoleId}> role.
0 commit comments