Mathias
Mathias
Explore posts from servers
SIASapphire - Imagine a framework
Created by Calypso on 4/20/2024 in #sapphire-support
Registering Context Commands
Oh ok thanks ... I hadn't understood it like that in the code
29 replies
SIASapphire - Imagine a framework
Created by Calypso on 4/20/2024 in #sapphire-support
Registering Context Commands
report message instead Report Message
29 replies
SIASapphire - Imagine a framework
Created by Calypso on 4/20/2024 in #sapphire-support
Registering Context Commands
My command name in the menu is still displayed in lowercase
29 replies
SIASapphire - Imagine a framework
Created by Calypso on 4/20/2024 in #sapphire-support
Registering Context Commands
My code:
export class ReportMessageCommand extends Command {
constructor(context, options) {
super(context, {
...options,
name: "Report Message",
});
}

registerApplicationCommands(registry) {
registry.registerContextMenuCommand(builder =>
builder //
.setName(this.name)
.setType(ApplicationCommandType.Message),
);
}
export class ReportMessageCommand extends Command {
constructor(context, options) {
super(context, {
...options,
name: "Report Message",
});
}

registerApplicationCommands(registry) {
registry.registerContextMenuCommand(builder =>
builder //
.setName(this.name)
.setType(ApplicationCommandType.Message),
);
}
29 replies
SIASapphire - Imagine a framework
Created by Calypso on 4/20/2024 in #sapphire-support
Registering Context Commands
I can't get it to work! Do I need to do anything specific?
29 replies
SIASapphire - Imagine a framework
Created by Mathias on 4/27/2024 in #sapphire-support
Error [UNLOADED_PIECE]: The piece 'ready' does not exist.
(My file name is ready.mjs)
17 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/27/2023 in #sapphire-support
Create WebServer with Plugin API
Thank you!
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/27/2023 in #sapphire-support
Create WebServer with Plugin API
OK, that's it. He didn't like port 8080
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/27/2023 in #sapphire-support
Create WebServer with Plugin API
My web server is not " open "
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/27/2023 in #sapphire-support
Create WebServer with Plugin API
I get ERR_CONNECTION_REFUSED
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/27/2023 in #sapphire-support
Create WebServer with Plugin API
Yes I have
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/25/2023 in #sapphire-support
Any tips for store data in the interaction ?
But thank you for your feedback: it opens up other perspectives for me if I need
13 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/25/2023 in #sapphire-support
Any tips for store data in the interaction ?
Yep, I see! The only problem is that it's hard to read after a while
13 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/25/2023 in #sapphire-support
Any tips for store data in the interaction ?
It's in the same spirit as what I do. For the moment: 1) I create an object with my parameters 2) I add my object to customId using JSON.stringify()
13 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/24/2023 in #sapphire-support
Error handling
Well done for the work you've done on the framework, I didn't know about it, it's cool!
8 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/24/2023 in #sapphire-support
Error handling
Ok thank you Favna!
8 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/24/2023 in #sapphire-support
Error handling
But the errors, for example: no permission to send a message in a channel I'm a web developer and in web, I have middleware that catches everything: that means I don't need to use try / catch every time I have an error to deal with. Which can make the code unreadable
8 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/23/2023 in #sapphire-support
Error when loading events
It's because I'd like to make 3 different bots with common components So I have 4 npm workspaces: 3 for a bot and 1 for the common components
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/23/2023 in #sapphire-support
Error when loading events
The problem's already been solved! It's because I was using the .js extension and not .mjs. And I didn't know you could require a .js file with ESM. It's all a bit new, so I'm trying to learn as I go!
14 replies
SIASapphire - Imagine a framework
Created by Mathias on 12/23/2023 in #sapphire-support
Error when loading events
Why does it work ?
14 replies