čamdžić
čamdžić
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
i get this (that is from rrbutton)
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
and when i click on button that starts with review-control
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
No description
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
and this is review-button.ts
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
@ApplyOptions<InteractionHandler.Options>({
interactionHandlerType: InteractionHandlerTypes.Button
})
export class ReviewButton extends InteractionHandler {
override parse(interaction: ButtonInteraction<"cached">) {
if (!interaction.customId.startsWith("review-control")) return this.none();

return this.some();
}
@ApplyOptions<InteractionHandler.Options>({
interactionHandlerType: InteractionHandlerTypes.Button
})
export class ReviewButton extends InteractionHandler {
override parse(interaction: ButtonInteraction<"cached">) {
if (!interaction.customId.startsWith("review-control")) return this.none();

return this.some();
}
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
this is rr-button.ts
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
@ApplyOptions<InteractionHandler.Options>({
interactionHandlerType: InteractionHandlerTypes.Button
})
export class RRButton extends InteractionHandler {
override parse(interaction: ButtonInteraction<"cached">) {
if (!interaction.customId.startsWith("rr")) return this.none();

return this.some();
}
@ApplyOptions<InteractionHandler.Options>({
interactionHandlerType: InteractionHandlerTypes.Button
})
export class RRButton extends InteractionHandler {
override parse(interaction: ButtonInteraction<"cached">) {
if (!interaction.customId.startsWith("rr")) return this.none();

return this.some();
}
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
i have more interaction handlers
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
No description
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
but now
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
nvm i fixed it
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
import { ApplicationCommandOptionType, ChannelType } from "discord.js";
import { ApplyOptions } from "@sapphire/decorators";
import { Command } from "@sapphire/framework";
import { reviewSystem } from "#lib/constants";

@ApplyOptions<Command.Options>({
description: "Post your review",
runIn: ChannelType.GuildText
})
export class ReviewCommand extends Command {
override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand({
name: this.name,
description: this.description,
options: [
{
description: "Member to review",
type: ApplicationCommandOptionType.User,
required: true
},
{
name: "category",
description: "Category of the review",
type: ApplicationCommandOptionType.String,
choices: reviewSystem.categories.map((category) => ({
name: category.label,
value: category.id
})),
required: true
}
]
});
}

override async chatInputRun(
interaction: Command.ChatInputCommandInteraction<"cached">
) {
await interaction.deferReply({ ephemeral: true });
}
}
import { ApplicationCommandOptionType, ChannelType } from "discord.js";
import { ApplyOptions } from "@sapphire/decorators";
import { Command } from "@sapphire/framework";
import { reviewSystem } from "#lib/constants";

@ApplyOptions<Command.Options>({
description: "Post your review",
runIn: ChannelType.GuildText
})
export class ReviewCommand extends Command {
override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand({
name: this.name,
description: this.description,
options: [
{
description: "Member to review",
type: ApplicationCommandOptionType.User,
required: true
},
{
name: "category",
description: "Category of the review",
type: ApplicationCommandOptionType.String,
choices: reviewSystem.categories.map((category) => ({
name: category.label,
value: category.id
})),
required: true
}
]
});
}

override async chatInputRun(
interaction: Command.ChatInputCommandInteraction<"cached">
) {
await interaction.deferReply({ ephemeral: true });
}
}
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
No description
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
? WTF xD
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/8/2024 in #sapphire-support
Object literal may only specify known properties, and 'name' does not exist in type 'ToAPIApplicatio
No description
18 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/3/2024 in #sapphire-support
serialize a bigint Plugins
and return that in res.json
10 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/3/2024 in #sapphire-support
serialize a bigint Plugins
i just put a Date.now() as BigInt in prisma
10 replies
SIASapphire - Imagine a framework
Created by čamdžić on 9/3/2024 in #sapphire-support
serialize a bigint Plugins
how can I fix this
10 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
.
19 replies
SIASapphire - Imagine a framework
Created by čamdžić on 8/17/2024 in #sapphire-support
drizzle orm
which already uses esm
19 replies