Svitkona
Svitkona
DIAdiscord.js - Imagine an app
Created by LukeZ on 7/14/2024 in #djs-questions
TS Error: The property "isReady" / "token" is not available for the "myClient" type.
can you show your code? is it just the same as above?
27 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 7/14/2024 in #djs-questions
TS Error: The property "isReady" / "token" is not available for the "myClient" type.
core's Client doesn't have isReady/token
27 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 7/14/2024 in #djs-questions
TS Error: The property "isReady" / "token" is not available for the "myClient" type.
are you using @discordjs/core on purpose?
27 replies
DIAdiscord.js - Imagine an app
Created by orion on 7/12/2024 in #djs-questions
Why ChatInputCommandInteraction can return a null channel?
looking at the source, interaction.channel is a getter that grabs the channel from the cache, and theoretically it might not be present https://github.com/discordjs/discord.js/blob/14.15.3/packages/discord.js/src/structures/BaseInteraction.js#L136
12 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
you should use a database for this
22 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
oh, i see, you're writing back to the files...
22 replies
DIAdiscord.js - Imagine an app
Created by ntb896 on 7/11/2024 in #djs-questions
Avoid commands being sent at the same time
looking at your commands, i don't see why there'd be an issue if two users tried to use the command at the same time what error are you getting?
22 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
err, what version of djs is this?
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
could you log result in the .then handler and show the output?
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
what makes you think that?
10 replies
DIAdiscord.js - Imagine an app
Created by GustyCube on 7/6/2024 in #djs-questions
bot just crashes
with what error?
3 replies
DIAdiscord.js - Imagine an app
Created by Machrage91 on 6/30/2024 in #djs-questions
i keep getting interaction failed on this command
looking at your code, you are doing database calls, which may take some time. so my guess would be it's the first point that applies here
7 replies
DIAdiscord.js - Imagine an app
Created by TechSupport on 6/24/2024 in #djs-questions
Running commands asynchronously
Did you try what I suggested?
33 replies
DIAdiscord.js - Imagine an app
Created by TechSupport on 6/24/2024 in #djs-questions
Running commands asynchronously
i suppose... it doesn't directly boost performance, but if you're doing them in parallel then yeah
33 replies
DIAdiscord.js - Imagine an app
Created by TechSupport on 6/24/2024 in #djs-questions
Running commands asynchronously
a worker thread pretty much just represents a separate thread of execution
33 replies
DIAdiscord.js - Imagine an app
Created by TechSupport on 6/24/2024 in #djs-questions
Running commands asynchronously
one way of achieving what you want would be to run the scraping code in a worker thread
33 replies