#djs-in-dev-version

1 messages · Page 36 of 1

valid idol
#

how

#

can i update it

vague coyote
#

download a newer installer

plain roverBOT
valid idol
#

v18 ?

#

ok thank you bro

vague coyote
valid idol
#

ok

#

i don't know the bot version

vague coyote
#

npm ls discord.js

valid idol
#

ok

#

SRY im beginner

#

@vague coyote now it will work or i will do a thing to work ?!

vague coyote
#

try it

#

and again, use the proper support channels

valid idol
#

ok

jagged haven
#

Does discordjs@dev support djs v15 ?

forest mulch
jagged haven
formal kernel
jagged haven
#

ok

lofty summit
#

It is for upcoming v14.1 correct?

knotty plover
#

It's both

#

Currently, more likely to v14.1

lofty summit
#

Alright thanks!!

knotty plover
#

Until such time as something that would be classified as "major" is introduced

#

The whole point is that it's unstable, latest, no version yet

lavish bay
#

Can someone help me with this

hoary fox
lavish bay
#

Can you tell me how to do that in dms

hoary fox
#

do what?

plain roverBOT
#

• Websocket intents limit events and decrease memory usage: learn more
• See what intents you need here

tawdry bronze
#

I am trying to learn djs can you suggest me with docs that I can read to start

knotty plover
tawdry bronze
#

can anyone give clear information on this

knotty plover
#

On what exactly

tawdry bronze
# knotty plover On what exactly

in the line 3 instead of "data" can we keep anything like embed and other?
is it compulsory to have slash cmd only like I don't want to learn abt slash since I want to make my bot usual cmd I don't see guide for that

knotty plover
#

We strongly recommend slash commands for the huge number of benefits they have over the old way

#

Which Discord is moving developers away from

#

So no, we do not provide a guide on that

tawdry bronze
lavish bay
knotty plover
plain roverBOT
#

Tag suggestion for @lavish bay:
• Websocket intents limit events and decrease memory usage: learn more
• See what intents you need here

lavish bay
#

@knotty plover can you help me

knotty plover
#

Can you read the guide

tawdry bronze
knotty plover
#

Yeah, those are not normal anymore and we dont provide guides for that

tawdry bronze
knotty plover
#

So make them

#

We dont provide guides though

lavish bay
#

Monbrey can you help me

knotty plover
#

With what

#

You seem to ignore every bit of help I've provided so far

lavish bay
#

I'm kinda a noob at coding so I don't know how and where to put intents

tawdry bronze
knotty plover
tawdry bronze
knotty plover
#

Or, you could just use slash commands since thats how bots should be developed now

#

yes

lavish bay
#

How do I make it slash commands

daring latch
#

is there any way how i could easily modify the djs code locally without the pain of having to build it and replace all internal package references with my own copies of it?

plain roverBOT
#

Suggestion for @lavish bay:
guide Interactions: Slash commands
read more

daring latch
#

i want to make some changes to v14 (ew enums)

#

and yes i can modify the files installed from npm, still they may get overwritten if something is changed upstream

knotty plover
#

lol

#

Those sound like terrible changes

daring latch
#

enums are terrible changes, yes

knotty plover
#

Objectively wrong

daring latch
#

(i dont want to discuss this here but me and some other people dont like some/most of the v14 changes, still staying on v13 is no real option)

knotty plover
#

¯_(ツ)_/¯

#

Half the methods still support strings because JS/TS is kinda bad at enums anyway

#

So while the enum is the better development approach, the string still works anyway

daring latch
#

that sounds like they might not be supported in a future release

knotty plover
#

Ideally. Enums allow API wrappers like ours to handle changes in the API in a non-breaking way

#

If Discord decided to rename all of the constants for something we have an enum for, we could mark the old ones as deprecated but repoint them to the new values under the hood

#

However overall yeah, the current PascalCase conventions, enums etc are pretty firmly the direction discord.js is taking moving forward and in line with how the TS rewrite of the main lib will be handled. /rest, /builders are already TS, /ws on the way

daring latch
knotty plover
#

It has happened

#

But... you'd rather change and maintain your own version of discord.js than change your code?

#

I mean its open source, you can

daring latch
#

maintain? no, the code is way too complicated for me to do that - i have no clue from building the modules, without building only parts of it work
also i'm lazy, i dont want to include the enum things in every file, i just want to use the strings like before...

knotty plover
#

lmao

daring latch
#

making my own lib only bc i hate enums seems dumb too xd
either i find a solution with djs which is probably the best, or i might use eris... idk, djs is/was better imo

knotty plover
#

Yeah sorry lol. If you really wanted to maintain your own conventions, fine, we cant/wont stop you

#

But you'd only hurt yourself later missing out on every other new feature if you dont maintain it

#

You could write utility functions, kinda like the resolveColor one

scarlet tangle
#

I personally used to use all of my own constants when I started out using slash commands, updating to d.js v14 was quite easy tbh

lavish bay
#

Anyone know how to take your bot off do not disturb

plain roverBOT
daring latch
daring latch
lavish bay
#

Oh ok

#

And how do I change his status example: PLAYING EXAMPLE

lavish bay
#

What does this mean

knotty plover
daring latch
#

my plan was to just diff the djs files with my versions of it (i hope its only like 5 files or sth, i dont plan on changing every enum) and just apply my changes again

lavish bay
daring latch
#

why do you ask me xd

lavish bay
#

Idk

#

Because your the only one chatting

daring latch
#

you probably have an error in your code, check ready.js in line 20 and see whats wrong

lavish bay
#

There is nothing in line 20

scarlet tangle
scarlet tangle
lavish bay
forest elm
#

what's with the dots?

#

and you should put that in the ready event

vague coyote
#

stop crossposting btw

#

either ask here or in v14, not both

lavish bay
#

Ok I'm leaving this server cause it's no help

vague coyote
#

👋

scarlet tangle
#

TypeError: MessageActionRow is not a constructor im getting this error

vague coyote
scarlet tangle
#

Found a bug, idek if its even discordjs tho

#

alr I'm convinced its discordjs

#

So, I have my standard /commands command, inside a cmds.js file

#

Can you show us the error and the code?

#

no error

#

interesting

#

heres my embed, nothing wrong with it, i just added custom emojis

#

my output:

#

Does the @everyone role in your server have USE_EXTERNAL_EMOJIS perm

#

one sec, but that wouldn't be a problem, bc I even added a console.log('hi')

#

no hi in here

#

so basically the command doesn't runs?

#

it does run

#

just the old version

#

even after I restart the bot

#

like ctrl + c

#

so after updating to v14 the command doesn't runs?

#

nope, i been on v14, just decided to change the cmd

#

oh i see

#

made sure it wasn't vs code

#

Do you think this is a bug?

icy dew
#

Hmmm did you save the file?

scarlet tangle
#

i mean you didn't tell what's wrong

#

discord.js doesn't caches your commands or any files

scarlet tangle
#

djs doesn't caches or stores any files

#

idk, pretty convinced its discordjs

#

should I reinstall discordjs

#

but djs doesn't stores files so it can't be it

#

i would rather say restart your pc or something thinKappa

#

fr ok

#

also do you use any sort of bundlers like webpack or rollup?

scarlet tangle
#

probably not then

#

ok reinstalling discord.js didnt work

#

restart pc time, wooo 🎉

#

yeah well discord.js doesn't stores your files so

scarlet tangle
vague coyote
scarlet tangle
#

cache issue on windows part i guess

dapper iris
#

when will a stable version of djs 14 will be released?
also there are many properties and methods missing from djs 13 in 14
how long can i expect?
i was building bot in v13 but now i shifted to v14 as i dont want to close development in 13.
i am waiting for forum channels too

vague coyote
oblique pulsar
#

Hey I am sorry I am not sure in which channel I should ask this

#

But would it be a problem if I run the same bot twice?
I mean with the same token...

woven grove
#

Could lead to problems with interactions yes

fallen drift
fickle vapor
#

How do I make my bot show me the commands it has with eval?

hoary fox
fickle vapor
jaunty vault
#

it's not all always cached btw

dense silo
#

how can i solve this? i just get this error when more than 1 member uses the same command

hoary fox
plain roverBOT
#

DiscordAPIError: Interaction has already been acknowledged
[INTERACTION_ALREADY_REPLIED]: The reply to this interaction has already been sent or deferred.

You have already replied to the interaction.
• Use <Interaction>.followUp() to send a new message
• If you deferred reply it's better to use <Interaction>.editReply()
• Responding to slash commands / buttons / select menus

dense silo
#

and it just happens when more than 1 member is using this command

#

if only one use it, it works fine

hardy sleet
#

Just wanted to say thanks for all the work that went into v14.

woven grove
#

Appreciate it

dawn phoenix
#

@inland coral this channel is specifically for the dev release, please use a help channel appropriate to the version you are using npm ls discord.js and show your code and error there
if it's a longer problem #986520997006032896 might be a better place
if you are new to js, check out #resources

inland coral
#

oh sorry ! ty 🙂

pastel flare
#

Question, Command Localization, is this including or 'Coming Soon(TM)' to DJS?
I assume the latter since it is in Beta?

hoary fox
#

is already in

#

u just need build to see it

pastel flare
#

Oh nice, so the Beta is for the Clients

#

Does SlashCommandBuilder support it?

hoary fox
#

also yes

pastel flare
#

Double nice.
Have to look into it when I've upgraded to v14

hoary fox
pastel flare
#

I read that bit.
I assume that if I had it supported, not everyone would benefit...yet

hoary fox
pastel flare
#

Ah I see.

knotty plover
#

Its in v13 too I think

pastel flare
#

Oh cool.
Well first jobs first, second jobs second 😀

knotty plover
#

You might as well set it up if you're going to. Not every will benefit, but as soon as they either turn on the override or it gets rolled out to everyone they well

pastel flare
#

Yea my thinking too, have it ready

small bloom
#

TypeError: String.prototype.matchAll called with a non-global RegExp argument someone can help me?

// 'member' is a string, and I receive the error when I insert an 'a' for example
const userMention = member.matchAll(UsersPattern).next().value;
if (userMention) mentionedMembers.push(`<@${userMention[1]}>`);
hoary fox
#

not djs?

small bloom
#

And I'm using the UsersPattern from MessageMentions

hoary fox
#

string#matchAll should work

hoary fox
small bloom
#

ah ok, ty

supple musk
small bloom
#

guild.roles.cache.get(roleMention[1]).members, why this isn't giving me all members with that role, is just returning 1 and the role has 2 members

copper jetty
small bloom
#

Some intents are missing, I put all intents and it worked, I'll just find which one is missing

knotty plover
#

lefting?

open copper
plain roverBOT
scarlet tangle
#

Use this typegaurd

scarlet tangle
#

Can someone help me get the voice channel the author of the slash command is currently in please?

vague coyote
scarlet tangle
#

ty

scarlet tangle
#

or optionally .id?

vague coyote
#

.channel and .channelId are both properties, the latter in case the first is null cuz uncached channel.

small bloom
#

how do I get the members from a channel, example, I have a ticket and I want to get the members that can see the ticket

hoary fox
#

also u should fetch members

pastel flare
#

Why are we helping in the Dev JS channel?

rain bramble
pastel flare
scarlet tangle
#

The selects menu inside a modal does not appear on the cell phone, how can I solve it and if it is possible to solve it

knotty plover
#

You cant

#

Thats why they arent documented or supported

#

Stop using them

scarlet tangle
#

Is there any prediction that they will fix this?

#

Thought of a very cool system with them

knotty plover
#

Yes, they will eventually document and support this

scarlet tangle
knotty plover
#

no

scarlet tangle
quasi mountain
#

hi