Visual Studio Code
Explore posts from serversSIASapphire - Imagine a framework
•Created by Visual Studio Code on 2/13/2024 in #sapphire-support
Using Paths w/ TypeScript
I'm trying to use TypeScripts Paths to make it easier and cleaner to import modules, although I always get:
Cannot find package '@modules/mongodb' imported from C:\ExampleDirectory
I've tried using node -r tsconfig-paths/register .
, but that doesn't work and it still shows the same error above.
The only thing that did manage to work was using tsx
, but unfortunately that's not supported by Sapphire so no commands, listeners, or interaction handlers loaded.6 replies
SIASapphire - Imagine a framework
•Created by Visual Studio Code on 2/1/2024 in #discordjs-support
Getting the deleter of a deleted message
Hi, I'm trying to get the deleter of a deleted message using
.fetchAuditLogs()
and .entries.first()
, but sometimes they don't work...
If I were to create a message and delete it, it would show me as the deleter. If I then created a message and then someone else deleted it, it would still show me as the deleter. Then, eventually it would switch and then always show the other person as the deleter.
(I tried asking in the DiscordJS server but they always say I'm wrong and don't actually help 😔)2 replies
SIASapphire - Imagine a framework
•Created by Visual Studio Code on 12/12/2023 in #discordjs-support
Editing an ephemeral reply from an interaction handler
How can I edit an ephemeral reply from an interaction handler?
Say that I have
ping.js
with an embed and a button in an ephemeral message, I want to be able to click that button and then edit the original ephemeral message from pinghandler.js
.9 replies
SIASapphire - Imagine a framework
•Created by Visual Studio Code on 11/8/2023 in #discordjs-support
Making multi-line embed descriptions cleaner
7 replies
SIASapphire - Imagine a framework
•Created by Visual Studio Code on 10/16/2023 in #sapphire-support
guild.roles.everyone but for boosters?
Wondering if there's a
guild.roles.everyone
version for the booster role?4 replies
SIASapphire - Imagine a framework
•Created by Visual Studio Code on 10/7/2023 in #sapphire-support
Specifying Types
5 replies