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
Gizzi12mo ago
Crazy?
d.js toolkit
d.js toolkit12mo 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
Gizzi12mo 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
Blockzilla12mo ago
oof
treble/luna
treble/luna12mo ago
they already are its isTextBased() now
Blockzilla
Blockzilla12mo ago
wait was it only for channels?
treble/luna
treble/luna12mo ago
also for commands
Blockzilla
Blockzilla12mo ago
and that version hasnt been released yet? because on 14.11 it doesnt show up as being deprecated
treble/luna
treble/luna12mo ago
The functions do not exist anymore
Syjalo
Syjalo12mo ago
Type guards that just thing.type === something are deprecaed in v13 and removed in v14
Blockzilla
Blockzilla12mo 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/luna12mo ago
run npm ls discord.js
Blockzilla
Blockzilla12mo ago
treble/luna
treble/luna12mo 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
Blockzilla12mo ago
Syjalo
Syjalo12mo ago
<Interaction>.isCommand() is there because there're other guards that based on it, like <Interaction>.isChatInputCommand()
Blockzilla
Blockzilla12mo ago
oh so some of them got removed?
treble/luna
treble/luna12mo ago
you're comparing a type to a boolean
Blockzilla
Blockzilla12mo ago
i know that
treble/luna
treble/luna12mo ago
well then don tdo that
Blockzilla
Blockzilla12mo ago
im trying to show that isCommand still exists according to vscode
treble/luna
treble/luna12mo ago
on BaseInteraction it exists yes but that is unreliable as it also includes any context menu command
Blockzilla
Blockzilla12mo ago
so, some of the is stuff got removed then? ill just use the .type to check it
treble/luna
treble/luna12mo ago
better to typeguard .
Blockzilla
Blockzilla12mo ago
brain.exe has stopped working
treble/luna
treble/luna12mo ago
use the .isChatInputCommand etc typeguards instead of comparting the types
Blockzilla
Blockzilla12mo 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/luna12mo ago
the type is still valid but it isnt recognised by ts
Blockzilla
Blockzilla12mo ago
ah i see, ill just use the is one then