MRDGH2821
MRDGH2821
SIASapphire - Imagine a framework
Created by f1fty on 12/22/2024 in #sapphire-support
How to wait that the initialization of the ApplicationCommandRegistry is finished
This seems like "how can I use X to do Y?" What is the "Y" you want to do?
5 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
Don't forget to mark solution once your bot starts working
22 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
You mean, in your local PC, you didn't encounter such problem? If yes, then I suppose that the internet connection or performance of your VM is slow Maybe try in a different VM/VPS?
22 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
I checked the code for ping command and it does look correct
22 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
Try the same code locally in your PC
22 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
Anyways, if you add deferred responses and still this is a problem, I think that there is some underlying problem in DJS itself🤔
22 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
More like the VPS is having a slow internet connection🤔
22 replies
SIASapphire - Imagine a framework
Created by Alex on 11/26/2024 in #discordjs-support
Interactions randomly fail in a dockerized bot
I think that your interactions are timing out really quickly
22 replies
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
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
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:
const prodHints = {
hint1: "id hint 1",
hint2: "id hint 2",
}

const devHints = {
// same thing as prodHints
}

const finalHint = process.env.NODE_ENV === 'development' ? devHints : prodHints

export default finalHint
const prodHints = {
hint1: "id hint 1",
hint2: "id hint 2",
}

const devHints = {
// same thing as prodHints
}

const finalHint = process.env.NODE_ENV === 'development' ? devHints : prodHints

export default finalHint
8 replies