Durus
Durus
SIASapphire - Imagine a framework
Created by Durus on 4/20/2023 in #sapphire-support
Problem since upgrading to latest sapphirejs and TS 5.0
Solved it, I'll close this now.
5 replies
SIASapphire - Imagine a framework
Created by Durus on 4/20/2023 in #sapphire-support
Problem since upgrading to latest sapphirejs and TS 5.0
oh it seems like it worked to remove the module commonjs line. I will test this, and then close this.
5 replies
SIASapphire - Imagine a framework
Created by Durus on 3/6/2023 in #sapphire-support
How to present Slashcommands?
Oh, I See. Our bot is a private project designed for only one server, so verification is no option for us... And we don't need it.
5 replies
SIASapphire - Imagine a framework
Created by Durus on 2/26/2023 in #discordjs-support
interaction.showModal not working
Nevermind missed an option in the Textinputbuilder. I am dumb.
5 replies
SIASapphire - Imagine a framework
Created by Durus on 2/26/2023 in #discordjs-support
interaction.showModal not working
No description
5 replies
SIASapphire - Imagine a framework
Created by Durus on 2/2/2023 in #sapphire-support
sapphire steals the CPU
Okay. The OS is a Ubuntu, but we gonna take a look on the code in a while. Thanks!
9 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
next time. I am glad that it is working now without having to code everything. But I'll write it on my TODO.
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
I just removed the decorators from every command having a constructor. Sapphire stopped showing this error, and loads the commands properly, so I think this issue is done for now. Thanks @Seren_Modz 21 !!!
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
Ok. I think I crossed two templates, I'll change this.
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
Because it worked until I did a upgrade to [email protected] 😅 (and the latest sapphire version of course 😉)
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
Is that a new feature of the latest update?
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
@Krish that is the code.
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
Okay, I'll try that as soon I'm home
17 replies
SIASapphire - Imagine a framework
Created by Durus on 1/22/2023 in #sapphire-support
Invalid Form Body (or at least something like that) When the bot tries to register a new command
BTW, the code of one of the commands is:
import { PrismaClient } from '@prisma/client';
import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
const prisma = new PrismaClient();
@ApplyOptions<Command.Options>({
description: 'Some description.'
})
export class UserCommand extends Command {
public constructor(context: Command.Context) {
super(context, {
preconditions: ['admin', 'guildchannel'],
cooldownDelay: 10_000
});
}

public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand({
name: this.name,
description: this.description
});
}

public async chatInputRun(interaction: Command.ChatInputCommandInteraction) { /* some code */}}} // I didn't count the brackets
import { PrismaClient } from '@prisma/client';
import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
const prisma = new PrismaClient();
@ApplyOptions<Command.Options>({
description: 'Some description.'
})
export class UserCommand extends Command {
public constructor(context: Command.Context) {
super(context, {
preconditions: ['admin', 'guildchannel'],
cooldownDelay: 10_000
});
}

public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand({
name: this.name,
description: this.description
});
}

public async chatInputRun(interaction: Command.ChatInputCommandInteraction) { /* some code */}}} // I didn't count the brackets
17 replies