Upsided
Upsided
Explore posts from servers
PPrisma
Created by Upsided on 8/23/2024 in #help-and-questions
db push stuck
hello! when running prisma db push it logs that the schema is loaded then logs the datasource then does nothing! what do I do?
6 replies
SIASapphire - Imagine a framework
Created by Upsided on 6/28/2024 in #sapphire-support
PaginatedMessage not changing files
For some reason, PaginatedMessage doesn't seem to update the file when the page changes. How do I solve this? My code:
const paginated = new PaginatedMessage();
for (const image of images) {
paginated.addPage(async (i, _) => ({
name: `Variant #${i + 1}`,
content: `Card image variant #${i + 1}`,
files: [new AttachmentBuilder(image).setName(`card_${i}.png`).setDescription(`Card image variant #${i}`)]
}));
}
paginated.run(interaction);
const paginated = new PaginatedMessage();
for (const image of images) {
paginated.addPage(async (i, _) => ({
name: `Variant #${i + 1}`,
content: `Card image variant #${i + 1}`,
files: [new AttachmentBuilder(image).setName(`card_${i}.png`).setDescription(`Card image variant #${i}`)]
}));
}
paginated.run(interaction);
9 replies
SIASapphire - Imagine a framework
Created by Upsided on 6/18/2024 in #sapphire-support
How do I make commands only visible to certain users?
Question's in the title. How do I make (interaction) commands visible to only certain users?
7 replies
TtRPC
Created by Upsided on 5/24/2024 in #❓-help
change data from query
There is a page in which I make a query for a list of codes, and on that page you can also generate one, how do I change the data to update the list on the page without refetching?
3 replies
PPrisma
Created by Upsided on 4/3/2024 in #help-and-questions
how to make onDelete: SetNull only work for one field
I have a relation which has 2 fields, one being optional and one is a required field, how do I make my schema so that when the referenced model is deleted it only sets the optional field to null?
1 replies
SIASapphire - Imagine a framework
Created by Upsided on 3/24/2024 in #sapphire-support
@sapphire/type error
Error when loading '/home/matthew/projects/ts/waddlebot/src/commands/General/eval.ts': error: Cannot find module "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.29/type.node" from "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/dist/esm/index.mjs"
Error when loading '/home/matthew/projects/ts/waddlebot/src/commands/General/eval.ts': error: Cannot find module "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/prebuild/type-node-v115-linux-x64-glibc-2.29/type.node" from "/home/matthew/projects/ts/waddlebot/node_modules/@sapphire/type/dist/esm/index.mjs"
7 replies
SIASapphire - Imagine a framework
Created by Upsided on 1/23/2024 in #sapphire-support
frustrating unknown interaction
I'm getting alot of unknown interaction errors and I have no idea what it means
8 replies
SIASapphire - Imagine a framework
Created by Upsided on 1/16/2024 in #sapphire-support
Duplicate identifier "Preconditions" when module augmenting "@sapphire/framework"
No description
5 replies