kyra
SIASapphire - Imagine a framework
•Created by nijama.dev on 12/25/2024 in #sapphire-support
Performance in interaction-handlers
No, the JS runtime is single threaded
8 replies
SIASapphire - Imagine a framework
•Created by nijama.dev on 12/25/2024 in #sapphire-support
Performance in interaction-handlers
Can confirm, unless your checks are slow or you have thousands of handlers, you’re not going to notice a performance impact
8 replies
SIASapphire - Imagine a framework
•Created by Chloe on 11/14/2024 in #sapphire-support
@sapphire/type does not work with Bun
@Chloe mentioning you just in case so you're aware of the response. :)
10 replies
SIASapphire - Imagine a framework
•Created by Doc Ker on 12/3/2024 in #sapphire-support
Slash command autocompletion dynamic input options
Command#autocompleteRun
can be async, which means you can execute a fetch HTTP request to retrieve the results and show them back to the user.8 replies
SIASapphire - Imagine a framework
•Created by Doc Ker on 12/3/2024 in #sapphire-support
Slash command autocompletion dynamic input options
Sorry for the delay, I don't know if you got it yet, but either way~ @Doc Ker
8 replies
SIASapphire - Imagine a framework
•Created by iaqi on 11/30/2024 in #sapphire-support
application command registry saying it takes 40 seconds to initalise
cc: @vladdy
38 replies
SIASapphire - Imagine a framework
•Created by Djbrown on 11/7/2024 in #sapphire-support
@sapphire/plugin-i18next FallbackLng Error
cc: @Favna
6 replies
SIASapphire - Imagine a framework
•Created by Chloe on 11/14/2024 in #sapphire-support
@sapphire/type does not work with Bun
Adding to this, @sapphire/type doesn't use Node.js' internals, it uses
v8.h
(see source code). Because Bun is built on JavaScriptCore (JSC) and not V8, we can't make the internal inspecting part available for Bun even with a Rust rewrite.10 replies
SIASapphire - Imagine a framework
•Created by dan on 12/19/2024 in #sapphire-support
Stop sapphire from automatically loading pieces
Pass
baseUserDirectory: null
in your client options to disable loading, this is one of the steps at registering and loading virtual pieces.5 replies
SIASapphire - Imagine a framework
•Created by RookieAND_ on 12/17/2024 in #sapphire-support
What is the role of a Piece and a Store in SapphireJS?
To put it in an analogy, think of it as a puzzle, the collection (Store) of the pieces (Piece) make up your app's behaviour.
8 replies
SIASapphire - Imagine a framework
•Created by WhacK on 12/1/2024 in #sapphire-support
string-store not finding identifiers other than first in Schema on deserialize typescript
Your store has 2 schemas, so when it deserializes a buffer, it can be one of the two. Compare the
id
or cast the value to the correct type to fix this.8 replies
SIASapphire - Imagine a framework
•Created by ShowCast on 11/25/2024 in #sapphire-support
Unexspected end of JSON input
You shouldn't read the body twice 😅
9 replies
SIASapphire - Imagine a framework
•Created by ShowCast on 11/25/2024 in #sapphire-support
Unexspected end of JSON input
You have a leading comma at license_key, which is a syntax error in JSON, and you’re not closing the top brace (
{}
)9 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
And sorry for the delay 😅
42 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
You're welcome!
42 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
Either way, 100 or 200 bytes, the unaligned key-less data can still store a lot of data :p
42 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
(Which would double our size limit XD)
42 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
The most likely alternative being Rust... which uses UTF32
42 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
That'll happen the day Discord changes the API from Python to something else
42 replies
SIASapphire - Imagine a framework
•Created by Amgelo on 11/19/2024 in #sapphire-support
Serializing string-store result inside another schema
That being said, we rarely ever change our libraries, specially the newest ones, so I don't expect to see a semver-major in the foreseeable future
42 replies