are the isCommand() is isText() etc, functions are going to get deprecated?

i recall seeing this somewhere, but either im going crazy and i can't find it anywhere.
29 Replies
Gizzi
Gizzi17mo ago
Crazy?
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
Gizzi
Gizzi17mo ago
I was crazy once, They locked me in a room, a rubber room, a rubber room with rats, and rats make me crazy.
Blockzilla
BlockzillaOP17mo ago
oof
treble/luna
treble/luna17mo ago
they already are its isTextBased() now
Blockzilla
BlockzillaOP17mo ago
wait was it only for channels?
treble/luna
treble/luna17mo ago
also for commands
Blockzilla
BlockzillaOP17mo ago
and that version hasnt been released yet? because on 14.11 it doesnt show up as being deprecated
treble/luna
treble/luna17mo ago
The functions do not exist anymore
Syjalo
Syjalo17mo ago
Type guards that just thing.type === something are deprecaed in v13 and removed in v14
Blockzilla
BlockzillaOP17mo ago
they still show up for me on vscode and im pretty sure im on the latest version because i created a new project & installed d.js just now
treble/luna
treble/luna17mo ago
run npm ls discord.js
Blockzilla
BlockzillaOP17mo ago
treble/luna
treble/luna17mo ago
i dont know what you're doing, but those functions do not exist https://old.discordjs.dev/#/docs/discord.js/14.11.0/class/TextChannel you can see it for yourself there
Blockzilla
BlockzillaOP17mo ago
Syjalo
Syjalo17mo ago
<Interaction>.isCommand() is there because there're other guards that based on it, like <Interaction>.isChatInputCommand()
Blockzilla
BlockzillaOP17mo ago
oh so some of them got removed?
treble/luna
treble/luna17mo ago
you're comparing a type to a boolean
Blockzilla
BlockzillaOP17mo ago
i know that
treble/luna
treble/luna17mo ago
well then don tdo that
Blockzilla
BlockzillaOP17mo ago
im trying to show that isCommand still exists according to vscode
treble/luna
treble/luna17mo ago
on BaseInteraction it exists yes but that is unreliable as it also includes any context menu command
Blockzilla
BlockzillaOP17mo ago
so, some of the is stuff got removed then? ill just use the .type to check it
treble/luna
treble/luna17mo ago
better to typeguard .
Blockzilla
BlockzillaOP17mo ago
brain.exe has stopped working
treble/luna
treble/luna17mo ago
use the .isChatInputCommand etc typeguards instead of comparting the types
Blockzilla
BlockzillaOP17mo ago
i dont get which of the two is removed since both show up for me should be using the is stuff for everything?
treble/luna
treble/luna17mo ago
the type is still valid but it isnt recognised by ts
Blockzilla
BlockzillaOP17mo ago
ah i see, ill just use the is one then
Want results from more Discord servers?
Add your server