veksen
DIAdiscord.js - Imagine an app
•Created by Mark on 5/25/2025 in #djs-questions
i got error for removing the semi colon
do read what I said tho: HIGHLY recommend yourself to equip yourself with Prettier and auto insert them (or remove), regardless of the setting you use, Prettier will cover your ass from ASI
43 replies
DIAdiscord.js - Imagine an app
•Created by Mark on 5/25/2025 in #djs-questions
i got error for removing the semi colon
then
43 replies
DIAdiscord.js - Imagine an app
•Created by veksen on 5/25/2025 in #djs-questions
Testing djs commands/flows
right ok, thank you
8 replies
DIAdiscord.js - Imagine an app
•Created by Mark on 5/25/2025 in #djs-questions
i got error for removing the semi colon
if you're new to JS, very much consider using semicolons, and even better use a tool like Prettier that manages them for you. Prettier would handle this edge case knowing you can't do
fn() ()
the JS reasoning is that this would attempt to call a function that's the return of your previous function, for example:
43 replies
DIAdiscord.js - Imagine an app
•Created by veksen on 5/25/2025 in #djs-questions
Testing djs commands/flows
Yeah I’ve taken such approach. Abstracted the reply method, and spy on that
8 replies
DIAdiscord.js - Imagine an app
•Created by veksen on 5/25/2025 in #djs-questions
Testing djs commands/flows
To expand, my current mocking is someting like this:
8 replies