MRDGH2821
SIASapphire - Imagine a framework
•Created by Barut on 11/1/2024 in #sapphire-support
Dilemma 😫
This is one example of Single responsibility principle of SOLID principles
5 replies
SIASapphire - Imagine a framework
•Created by Barut on 11/1/2024 in #sapphire-support
Dilemma 😫
For my bots I have separated the concerns into different files.
Helps in reducing cognitive load.
5 replies
SIASapphire - Imagine a framework
•Created by Barut on 11/1/2024 in #sapphire-support
Dilemma 😫
I don't think file RW operations are gonna affect performance from software side that much.
Cloud providers mostly use SSDs, new laptops & devices come with SSD or flash storage which are quite fast.
Raspberry Pi's limit is SD card based. But you can attach SSD into it
5 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/18/2024 in #sapphire-support
Slash-Context menu commands with spaces?
8 replies
SIASapphire - Imagine a framework
•Created by Shrewd 💫 on 9/18/2024 in #sapphire-support
Slash-Context menu commands with spaces?
Display text can have it.
Don't know about component label
8 replies
SIASapphire - Imagine a framework
•Created by Lemons on 9/5/2024 in #sapphire-support
TypeError: Cannot convert undefined or null to object
Downgrade to 5.4.5
11 replies
SIASapphire - Imagine a framework
•Created by Sandy Stone on 6/13/2024 in #sapphire-support
IntelliSense autocomplete not showing up exclusively for Sapphire classes?
:dead:
107 replies
SIASapphire - Imagine a framework
•Created by SEMESTER 5 MENIT TIDUR on 7/31/2024 in #sapphire-support
EMPTY_MODULE
Downgrade typescript to 5.4.5 perhaps?
12 replies
SIASapphire - Imagine a framework
•Created by dan on 7/11/2024 in #sapphire-support
Assigning ID hints outside of builders
8 replies
SIASapphire - Imagine a framework
•Created by dan on 7/11/2024 in #sapphire-support
Assigning ID hints outside of builders
There was also something called
bulk overwrite
by which you wouldn't need to specify id hints 🤔8 replies
SIASapphire - Imagine a framework
•Created by dan on 7/11/2024 in #sapphire-support
Assigning ID hints outside of builders
And then import them into the place where you need them
8 replies
SIASapphire - Imagine a framework
•Created by dan on 7/11/2024 in #sapphire-support
Assigning ID hints outside of builders
You can use environment variables specifyig individual id hints or a separate file like
config.ts
which will have this:
8 replies
SIASapphire - Imagine a framework
•Created by Ruin 🌈🐲 on 7/9/2024 in #sapphire-support
PM2 issues
PM2 should be running the command
pnpm start
Wait this doesn't seem to be relevant to question. My bad 😅26 replies
SIASapphire - Imagine a framework
•Created by simnJS on 7/2/2024 in #sapphire-support
Terminal Crash
On a side note, I still wonder why Microsoft bundles PS 5.1, while it advertises PS 7, especially for non-business users 🤔
15 replies
SIASapphire - Imagine a framework
•Created by Bonnia on 7/3/2024 in #sapphire-support
got error idk what’s wrong with my code
86 replies
SIASapphire - Imagine a framework
•Created by Bonnia on 7/3/2024 in #sapphire-support
got error idk what’s wrong with my code
Long press message, same options will come
86 replies
SIASapphire - Imagine a framework
•Created by Bonnia on 7/3/2024 in #sapphire-support
got error idk what’s wrong with my code
86 replies
SIASapphire - Imagine a framework
•Created by Bonnia on 7/3/2024 in #sapphire-support
got error idk what’s wrong with my code
As for solution to the original question:
Discordjs changed the intent variable case. Either use
GatewayIntentBit
enum or specify intents in UpperCamelCase86 replies
SIASapphire - Imagine a framework
•Created by Bonnia on 7/3/2024 in #sapphire-support
got error idk what’s wrong with my code
No problem, Discordjs guide will point out wherever there is something typescript specific.
You will just need to deal with type system in Typescript, else Javascript knowledge can be used in Typescript & vice versa
86 replies
SIASapphire - Imagine a framework
•Created by Bonnia on 7/3/2024 in #sapphire-support
got error idk what’s wrong with my code
Then I suggest you start with this.
This will build your understanding after which you can comfortably use Sapphire framework
86 replies