Upsided
Upsided
Explore posts from servers
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
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