dan
dan
Explore posts from servers
Support for bun
Does sapphire support bun out of the box? While trying to run the code (without compiling, aka directly through bun) I get multiple errors saying a compatible class export can't be found... I'm assuming this means the code has to be compiled first but If I'm wrong let me know.
7 replies
Overriding message command listeners
Is it possible to virtually load a piece (listener) to override the default CorePreMessageParser? I'd prefer not to do this by adding it to my listeners folder but rather in my command manager
3 replies
Application command registries
No description
15 replies
SIASapphire - Imagine a framework
Created by dan on 7/31/2024 in #sapphire-support
Registering multiple paths for pieces
I was wondering if it's possible to register multiple paths for sapphire's pieces (commands, listeners, preconditions, etc). The reason why I want to do this is because I override most of the core listeners to add my bot's customization options and I wanted to separate them
8 replies
SIASapphire - Imagine a framework
Created by dan on 7/28/2024 in #sapphire-support
Global preconditions position seems to be broken
I overrode sapphire's default UserPermission precondition so I could add my own logic. This precondition specifically works fine and runs after the ones that have a position before it, however, I have another precondition that checks for channel permissions, and that one seems to run before this, even though it has a higher position I can't tell if this is a bug or I'm doing something wrong but that's what is happening
3 replies
SIASapphire - Imagine a framework
Created by dan on 7/26/2024 in #sapphire-support
Overriding default permission precondition
I'd like to use sapphire's core permission precondition but I want to modify it and add my own logic. By this I mean being able to use requiredUserPermissions in the command options. Reading through the guide/docs It doesn't specify if you can override the core preconditions with your own (like you can with arguments) so I'm asking here for clarification
11 replies
RRailway
Created by dan on 7/17/2024 in #✋|help
Billing - Subscription cancellation
I would like to cancel my subscription, but since the monthly fee is paid, I'm wondering if I can keep using the platform until the next billing period. I have some projects that I need to migrate the data of before and I want to make sure that they keep running.
18 replies
RRailway
Created by dan on 7/14/2024 in #✋|help
Build failed while taking a code snapshot
It's the 2nd ever time I've encountered this error, however, I did not report it the first time as it was 25 minutes before the original outage where the hobby plan was disabled (and I assumed it wouldn't be a recurring issue), but now without an outage it's happened again. There are no logs at all, the field is just empty and says 'activity error'.
40 replies
SIASapphire - Imagine a framework
Created by dan on 7/11/2024 in #sapphire-support
Assigning ID hints outside of builders
Is it possible to assign id hints outside of builders? Currently it's impossible to juggle id hints between the dev bot and the main bot and I was wondering if there's a way to do this outside of the builder, maybe before the client is initialized
8 replies
RRailway
Created by dan on 7/9/2024 in #✋|help
Ghost deploy
No description
33 replies
Slash commands failing to register
I deleted my dist folder because I wanted to 'refresh' the compiled code, and right after I noticed that only 2 of my commands are registering now, them being escalation-manager and shortcut-manager. I don't get what went wrong since it was working fine earlier but maybe someone can shine some light into this?
13 replies
Chat input command IDs
I have a function that needs to get the id of a chat input command to process some logic, and I was wondering how I could get the id? Obviously it's stored in container.stores.get('commands') but I don't know where to go from there.
7 replies
Interaction create and custom commands
I have a system with shortcuts (basically a command that punishes a user with a defined reason and duration, e.g something like ,spam <user>) and I'm trying to port them to my sapphire bot, however, I'm unsure if adding an interaction create event for chat input commands would mess with sapphire's handlers. My guess is that It won't if it can't find a command that matches the name of a global command but I'd still like to make sure. Can anyone confirm this?
19 replies
Errors and their listeners
In my commands when I want to throw an error I just use throw '<message>' and then send an embed with that error using the MessageCommandError event listener. This works fine however It also logs to my console, which is really annoying me. Is there a way to disable this?
10 replies
RRailway
Created by dan on 6/24/2024 in #✋|help
Errors with Dockerfile
I'm trying to go back to compiled typescript code to reduce bun's memory usage. I've constructed my dockerfile and everything works fine up until the point it has to actually run the code. Could someone that has knowledge on docker assist me, as I'm a complete idiot in this.
26 replies
RRailway
Created by dan on 6/20/2024 in #✋|help
Encountered a random restart after using V2 runtime for a while
No description
95 replies
RRailway
Created by dan on 5/23/2024 in #✋|help
Database errors happening randomly after update
I updated some parts of my code, and now, out of nowhere prisma just throws the biggest error I've ever seen. I asked my friends about it and they say that Prisma isn't at fault. It says that there's a library missing but everything works well locally. Can someone shine some light on this?
92 replies
RRailway
Created by dan on 5/20/2024 in #✋|help
Bun
Is railway compatible with bun? I'm looking to switch from nodejs to bun and want to make sure railway supports it.
26 replies
RRailway
Created by dan on 5/1/2024 in #✋|help
Transferring services
Is it possible to move services to another project? I know you can recreate them but that would delete my database data and charge me egress for not using the private network.
6 replies