Peace
Explore posts from serversSIASapphire - Imagine a framework
•Created by Peace on 7/24/2024 in #sapphire-support
Compilation Errors in Dependencies
Hey, I'm trying to create a new project, but when running
tsc
to build the bot I get many errors.
There are more errors in this file from similar methods (isErr, isErrAnd, isNone, ...)
And also some errors between @types/node
and discord.js
.
And similar ones
I thought maybe me dependencies do not match or so, but I tried using other versions too and didn't notice anything different
Here are my deps
Does someone has an idea how to fix this?4 replies
SIASapphire - Imagine a framework
•Created by Peace on 11/14/2023 in #sapphire-support
Subcommand wont get registered
7 replies
SIASapphire - Imagine a framework
•Created by Peace on 8/29/2023 in #sapphire-support
GuildMemberRemove not running
I just think I'm overlooking something but...
I'm trying to do something if a member leaves the guild, but the event is not running.
I have the following intends:
- Guilds
- GuildMembers
- GuildPresences
I also added the partial "GuildMember".
The Listener looks like this:
9 replies
SIASapphire - Imagine a framework
•Created by Peace on 8/28/2023 in #sapphire-support
Custom Error Event
So I know, I can use
UserError
to throw an error if the user did something wrong.
But what to throw if something unexpected happend, like a 500 to my own api.
I thought maybe the normal Error
but it isn't handled by the ChatInputCommandError
Event.
I want the user to get a error message in chat, so I need to use the interaction.
Do I have to throw something else? Or do I have to listen to another event?
Thanks :35 replies