Skip to content

Commit 5e54986

Browse files
authored
feat(supportposts): add specific detail for voice (#26)
* add specific detail for voice support channels * fix typo
1 parent 3c4de50 commit 5e54986

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/events/threadCreate.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ export default class implements Event {
2424
await wait(2_000);
2525
const parts: string[] = [];
2626

27-
if (thread.parent?.name.includes("djs")) {
27+
if (thread.parent?.name.includes("voice")) {
28+
parts.push(
29+
"- What are your intents? `GuildVoiceStates` is **required** to receive voice data!",
30+
"- Show what dependencies you are using -- `generateDependencyReport()` is exported from `@discordjs/voice`.",
31+
"- Try looking at common examples: <https://github.com/discordjs/voice-examples>.",
32+
);
33+
} else if (thread.parent?.name.includes("djs")) {
2834
parts.push(
2935
"- What's your exact discord.js `npm list discord.js` and node `node -v` version?",
3036
"- Not a discord.js issue? Check out <#1081585952654360687>.",

0 commit comments

Comments
 (0)