Skip to content

Commit b8baf21

Browse files
committed
Update help channel occupied status message
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.
1 parent 7a617bf commit b8baf21

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Diff for: src/modules/helpchan.ts

+11-5
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,20 @@ This channel will be dedicated to answering your question only. Others will try
4242
For more tips, check out StackOverflow's guide on **[asking good questions](https://stackoverflow.com/help/how-to-ask)**.
4343
`;
4444

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
4549
const occupiedMessage = (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}>
4853
49-
**${asker.toString()} You'll get better and faster answers if you:**
54+
**${asker} You'll get better and faster answers if you:**
5055
• 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.
5359
5460
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.
5561

0 commit comments

Comments
 (0)