souji
souji
DIdiscord.js - Imagine ❄
Created by souji on 10/17/2023 in #djs-voice
FAQ: Voice connection disconnects after a short time
Make sure you are using version 0.18.0 of @discordjs/voice or newer. :SystemMessageWarn: Check that this also applies to all voice-related packages that may use other versions!
npm list discord.js

yarn list discord.js
yarn why discord.js // for yarn v3+

pnpm list discord.js
npm list discord.js

yarn list discord.js
yarn why discord.js // for yarn v3+

pnpm list discord.js
If you verified you do not have an old version installed in your dependency tree, please create a post in #djs-voice with the dependency tree and relevant code samples.
1 replies
DIdiscord.js - Imagine ❄
Created by souji on 3/30/2023 in #djs-questions
TypeError channel.isTextBased/channel.isText is not a function
- v14: npm i discord.js@latest - v13: npm i discord.js@v13-lts What happened?
Discord has rolled out a change which broke how we handle things in discord.js. We have fixed this when it first came up and was reverted due to breaking a lot of bots without an immediate fix. Apparently you have not updated discord.js since we did that!
How do I fix it?
Update discord.js! (updating minor versions should not break anything)
But I didn't change anything!
Correct, but Discord did! (and as response discord.js did, which you need to apply now)
I updated and it still throws this error!
• Please make sure you actually updated the library and confirm the version with npm list discord.js • You need to have a version of at least 14.8.0 or 13.14.0 respectively.
It shows the right version number, but still throws this error!
Try a clean installation with your package manager of choice: (if using a process manager, try to restart the daemon process as well)
V14:
npm remove discord.js
npm install discord.js

yarn remove discord.js
yarn add discord.js

pnpm remove discord.js
pnpm install discord.js
npm remove discord.js
npm install discord.js

yarn remove discord.js
yarn add discord.js

pnpm remove discord.js
pnpm install discord.js
V13:
npm remove discord.js
npm install discord.js@13

yarn remove discord.js
yarn add discord.js@13

pnpm remove discord.js
pnpm install discord.js@13
npm remove discord.js
npm install discord.js@13

yarn remove discord.js
yarn add discord.js@13

pnpm remove discord.js
pnpm install discord.js@13
If after this you still get this error, please open a post in our support forum with a full error stack trace and your relevant code!
1 replies
DIdiscord.js - Imagine ❄
Created by souji on 7/22/2022 in #djs-questions
[RESOLVED] DiscordAPIError Invalid Webhook Token
DiscordAPIError: Invalid Webhook Token [RESOLVED]
This is a Discord API error. Neither you nor we can do anything about that, you'll have to wait until Discord fixes this.
- This affects all versions of discord.js (and any other library) - This affects patch and delete calls including webhook tokens - Application command initial responses still work - Application command patch (this affects deferred responses) and delete are broken - Regular webhook message patch and delete are broken - And yes, you are using webhooks - that's how interaction replies work
27 replies