theo
SIASapphire - Imagine a framework
•Created by theo on 3/18/2023 in #sapphire-support
What typescript version to use?
Since the most recent announcement in #Announcements recommends that I should not use typescript version 5.x, what version should I rather use? Just any recent version below that?
5 replies
SIASapphire - Imagine a framework
•Created by theo on 1/19/2023 in #sapphire-support
define global variable on start up
I'm trying to start a playwright chromium instance when the bot starts and I want it to be global, as in have it be usable in command classes, how would I do that?
6 replies
SIASapphire - Imagine a framework
•Created by theo on 1/19/2023 in #sapphire-support
error handler
Is there a global error handler as like a listener, I looked through the docs but haven't seen something like that yet.
4 replies
SIASapphire - Imagine a framework
•Created by theo on 1/18/2023 in #sapphire-support
TypeScript watch and starting bot taking over a minute
Hello, I'm relatively new to NodeJS etc. I started a new project trying to learn more TypeScript with SapphireJS and I installed it with pnpm and am trying to use TypeScript, I am coming from discord.py where I've become used to not having to compile code and having my bot start in less than 10 seconds, which is already considered way too much. I don't know if this an issue with my incompetence or with my computer, but running
pnpm tsc --outDir dist/ -w src/*.ts
and updating once of my source files takes way too long to be able to debug it properly and starting the bot takes roughly over a minute. Is there anything I'm doing wrong or is that normal?17 replies