eveeifyeve
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
I got it working dw.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
That's what I got for command handler.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Type '(client: Client<true>) => Promise<void>' is not assignable to type 'Promise<function>'.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
So would this be correct?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
If I am not wrong async returns a promise.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Also the handlers need to be async execute right?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Well would it still fuction how it is without it?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Well i want it type imported but i am getting
Cannot find name 'SlashCommand'.
even tho I have defined it.44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
I don't know if it's possible without creating a new type.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
And it's needs to be used in the command handler.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
This type is for the slashCommands.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Or do I need to make a new type?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Cause I have a type called SlashCommand under types.d.ts, do I just call that for commands?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Using the import?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
I have to do the same for my handlers as well?
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
Property 'default' does not exist on type 'Promise<any>'.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
What would the import look like as I have a type error at default.
44 replies
DIAdiscord.js - Imagine an app
•Created by eveeifyeve on 11/16/2024 in #djs-questions
TS Bot Handlers not running with correct envs
The ESM way?
44 replies