#Unable to get options using ts on InteractionCreate
13 messages · Page 1 of 1 (latest)
discord.js: v14.9.0
Node: v19.8.1
What is client defined as here? Doesn’t seem to be a Client from discord.js else the destructuring of the callback is just plain wrong
This is the client from the official example
const rest = new REST({ version: '10' }).setToken(token);
const ws = new WebSocketManager({
token,
intents: GatewayIntentBits.GuildMessages | GatewayIntentBits.MessageContent,
rest,
});
const client = new Client({ rest, ws });
So you use @discordjs/core, not discord.js? Why mention a djs (mainlib) version then?
Depends. Why do you use /core? You either should
- change the tag or
- use mainlib instead
depending on what you actually want
I use /core because it was an example on the documentation. And to change you mean to remove the v14.9.0 tag?
What documentation? The documentation of the /core package? Because main djs docs don’t use that
If I click "Docks" it sends me to https://discord.js.org/docs/packages/core/0.5.2
Read the big blue box at the top…
Home: Introduction