Danial
Danial
DIAdiscord.js - Imagine an app
Created by Rodry on 6/8/2024 in #djs-questions
Readonly array in message options interface
Yep, even without a tsconfig
127 replies
DIAdiscord.js - Imagine an app
Created by Rodry on 6/8/2024 in #djs-questions
Readonly array in message options interface
Well if discord.js does nothing, what's the point of using it? read-only means that the parameter you pass in can't and won't be modified, it can clone it and make changes to that clone just fine, no issues there, and that's what discord.js does
127 replies
DIAdiscord.js - Imagine an app
Created by Rodry on 6/8/2024 in #djs-questions
Readonly array in message options interface
You shouldn't claim stuff you can't back :shrug:
127 replies
DIAdiscord.js - Imagine an app
Created by Rodry on 6/8/2024 in #djs-questions
Readonly array in message options interface
I don't see the original properties being modified anywhere, can you send what exactly you're talking about?
127 replies
DIAdiscord.js - Imagine an app
Created by Rodry on 6/8/2024 in #djs-questions
Readonly array in message options interface
Packages set a standard and people have to adapt to it, not the other way around, packages can't be changing things just because one person said so, if the package doesn't align with your goals, you shouldn't use it
127 replies
DIAdiscord.js - Imagine an app
Created by Rodry on 6/8/2024 in #djs-questions
Readonly array in message options interface
there are many transformations happening to inputs behind the scenes
Can you please say where? And those inputs are typed as readonly?
127 replies
DIAdiscord.js - Imagine an app
Created by Unicorn. on 4/1/2024 in #djs-questions
fetch the new created channel
Also, setParent in that second .then would be InteractionResponse and you can't call it
9 replies
DIAdiscord.js - Imagine an app
Created by Unicorn. on 4/1/2024 in #djs-questions
fetch the new created channel
You can pass in the parent when creating the channel with the parent property
9 replies
DIAdiscord.js - Imagine an app
Created by Stanlehx on 3/31/2024 in #djs-questions
Reacting after Interaction Reply with Embed
Add fetchReply: true when replying so it will return a Message, not InteractionResponse
5 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/21/2024 in #djs-questions
Event listener breaking upon using command
Of course
16 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/21/2024 in #djs-questions
Event listener breaking upon using command
16 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/21/2024 in #djs-questions
Event listener breaking upon using command
And <Map>.get does exist
16 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/21/2024 in #djs-questions
Event listener breaking upon using command
Seems like you're using the create-discord-bot template but it's modified, in that template, loadCommands returns a Map, not an array
16 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/21/2024 in #djs-questions
Event listener breaking upon using command
items is an array in the load function, so commands is also an array, and <Array>.get indeed does not exist
16 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/21/2024 in #djs-questions
Event listener breaking upon using command
Where and how are you calling that function?
16 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/20/2024 in #djs-questions
Event Properties missing?
Enum members are always PascalCase, and the event name is guildMemberUpdate
8 replies
DIAdiscord.js - Imagine an app
Created by Du on 3/20/2024 in #djs-questions
Event Properties missing?
It's Events.GuildMemberUpdate
8 replies
DIAdiscord.js - Imagine an app
Created by </JustTheDev> on 3/20/2024 in #djs-questions
deploy-commands.js stopped working without errors
Show your code
19 replies
DIAdiscord.js - Imagine an app
Created by paxton!! on 3/6/2024 in #djs-questions
How do I add a role with discord.js
Users don't have roles, members do, change that getUser() to getMember() and it'd be target.roles.add(role)
4 replies
DIAdiscord.js - Imagine an app
Created by izexi on 3/3/2024 in #djs-questions
Learn How To Spell
No description
5 replies