oriel beck
oriel beck
SIASapphire - Imagine a framework
Created by oriel beck on 5/20/2024 in #sapphire-support
Validation error
Please, add better errors for this thing...
7 replies
SIASapphire - Imagine a framework
Created by oriel beck on 5/20/2024 in #sapphire-support
Validation error
Yeah ok, forgot setStyle so it exploded
7 replies
SIASapphire - Imagine a framework
Created by oriel beck on 5/20/2024 in #sapphire-support
Validation error
Did a quick check, all parameters are strings (empty strings, but still typeof string)
7 replies
SIASapphire - Imagine a framework
Created by oriel beck on 5/20/2024 in #sapphire-support
Validation error
This is the modal function:
export function dailyNekoModal(artist_name: string, artist_url: string, source_url: string, neko_url: string) {
return new ModalBuilder()
.setCustomId("dailyneko-modal")
.setTitle("Daily Neko")
.addComponents(
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("artist_name")
.setValue(artist_name || "")
.setLabel("Artist Name")
),
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("artist_url")
.setValue(artist_url || "")
.setLabel("Artist URL")
),
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("source_url")
.setValue(source_url || "")
.setLabel("Source URL")
),
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("neko_url")
.setValue(neko_url || "")
.setLabel("Neko URL")
)
)
}
export function dailyNekoModal(artist_name: string, artist_url: string, source_url: string, neko_url: string) {
return new ModalBuilder()
.setCustomId("dailyneko-modal")
.setTitle("Daily Neko")
.addComponents(
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("artist_name")
.setValue(artist_name || "")
.setLabel("Artist Name")
),
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("artist_url")
.setValue(artist_url || "")
.setLabel("Artist URL")
),
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("source_url")
.setValue(source_url || "")
.setLabel("Source URL")
),
new ActionRowBuilder<TextInputBuilder>()
.addComponents(
new TextInputBuilder()
.setCustomId("neko_url")
.setValue(neko_url || "")
.setLabel("Neko URL")
)
)
}
7 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/19/2023 in #sapphire-support
Running commands manually
I need the messageRun, but it's probably the exact same thing
12 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/19/2023 in #sapphire-support
Running commands manually
Oooh that's what I was looking for, thank you
12 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/19/2023 in #sapphire-support
Running commands manually
Being able to access the way sapphire runs them (going through preconditions etc)
12 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/19/2023 in #sapphire-support
Running commands manually
I hoped there is a better way
12 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Thx tho, this solves the issue
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
The bot is written with functional programming, I'm trying to minimize duplicated code when possible
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Yeah, that's the plan currently
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Code duplication basically
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Well, I have listeners for chat input, message (and now subcommand) denies and errors, and they all technically do (well, will do, it's wip) the exact same thing
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
I wish I could just combine the error and deny listeners of everything into one, is that even possible?
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
So many listeners...
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
For the love of god
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Is there another event that they throw? Couldn't find anything about that
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
It's a subcommand
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Yeah it is
38 replies
SIASapphire - Imagine a framework
Created by oriel beck on 7/3/2023 in #sapphire-support
Error listeners
Yeah
38 replies