WeeskyBDW
Explore posts from serversSIASapphire - Imagine a framework
•Created by WeeskyBDW on 7/24/2024 in #sapphire-support
Bulk upgrade commands to remove unregistered ones
Hellow
How we bulk update commands (slash but also contectuals) with sapphire ? or in more general deleting unregeistered commands ? i tried register behavior as BULK_OVERWRITE but i didn't work
7 replies
DIAdiscord.js - Imagine an app
•Created by WeeskyBDW on 6/2/2024 in #djs-questions
[opinion needed] Splitting data fetching to repositories
👋
⚠️ I post that here because it a way related to djs but isn't a problem with djs itself, more a reflexion of structuration. Feel free to told me if it's
I was wondering if it would be usefull/not overkill to split data fecthing (from an DB using an ORM, external REST API using a librairy etc) and slash command code ? for example a commands/test.js that handle /test slash command and thus test.js use repositories/testRepository.js file (wich are a class/collection functions that use an lib to call external api)
I'm open to any opinion and suggestion !
Thx
3 replies
SIASapphire - Imagine a framework
•Created by WeeskyBDW on 5/6/2024 in #sapphire-support
Custom logger transport
Hello
is they a way to set custom logger transport (like what winston allow to do) with sapphire logger (plugin logger) ?
I saw other ppls also want similar things/support with winston
24 replies
SIASapphire - Imagine a framework
•Created by WeeskyBDW on 4/22/2024 in #sapphire-support
Are command instance recreated every time someone use the associate slash command ?
Hello
I was wondering : imagine i have a simple ping slash command who return "pong". Will sapphire recreate an instance of my Ping class (who register the command) every time do /ping or not ?
7 replies
SIASapphire - Imagine a framework
•Created by WeeskyBDW on 3/30/2024 in #sapphire-support
Should i acquire every command or only once
Hello
I just got interest to Sapphire and when i was reading advanced doc for registering commands outside of classes (in my case in a yml file) i saw that acquire a registry is necessary but i was wondering if i have to acquire multiple registry or not ? and also what registry id would be usefull for ?
Thx
31 replies
DIAdiscord.js - Imagine an app
•Created by WeeskyBDW on 1/23/2023 in #djs-questions
Package/lib for easly mocking djs ?
Hi
Do you know an nodejs package that simplify mocking of djs things ? thx
25 replies
DIAdiscord.js - Imagine an app
•Created by WeeskyBDW on 8/29/2022 in #djs-questions
Can't access Message.content
My bot (it is in one guild and all intents enable in ddev panel) can't acess message content after message is create
Code
call in a messageCreate event
11 replies
DIAdiscord.js - Imagine an app
•Created by WeeskyBDW on 8/25/2022 in #djs-questions
Why Textchannel.send allow string as option parameter
is a easy way from ppls that come from really old version of djs (when we were allowed to use a simple string for message content) ?
5 replies