Skip to content

Commit

Permalink
feat(supportposts): add specific detail for voice (#26)
Browse files Browse the repository at this point in the history
* add specific detail for voice support channels
* fix typo
  • Loading branch information
nyapat authored Aug 22, 2024
1 parent 3c4de50 commit 5e54986
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/events/threadCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export default class implements Event {
await wait(2_000);
const parts: string[] = [];

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

0 comments on commit 5e54986

Please sign in to comment.