I've been at this for hours. Invalid Channels?
This is how im defining channels
for some reason my command use.ts is invalid? its all due to this line
Below is the function file. The error occurs due to me assigning to the channel variable.
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
heres the full command file
Pastebin
import { InfoEmbed } from '../modules/embeds';import { SlashCommand...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
What error are you getting exactly? Im seeing a lot of code here but I'm actually not sure what the issue is
When you say invalid channels is it a Discord API error, or what exactly?
Or is it just that you're trying to export them before theyre defined, is that it?