FM
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
no apologies needed. i'm super grateful these packages exist, and these conversations help identify potential improvements. thank you for your efforts, kyra 🙏
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
took a little tweaking, but this works, thank you!
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
hi kyra! is there an update on this? i perused the #GitHub Logs and didn't see anything. with regard to how the framework currently handles things, should i just build the button logic directly in the modal interaction-handler for the time being? i don't want to export the variable as that just seems ... messy. open to suggestions though.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
okay cool. i'm glad i'm not missing something stupid lol
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
what do i use for the parse string for the button handler to pick up the interaction? i pass the variable into the
.setCustomId
method, but i'm stuck getting the button handler to pick it up:
and in the button handler:
it wants a normal string so bad. i feel like i'm missing something totally rookie.46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
🤔
interesting. thank you for the insight. i'll try the jsdoc way first.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
gotcha. i shall give that a go. i'm using js.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
I may be doing something wrong. This is my store, StripeSchemaStore.js:
and i use it in the modal interaction handler, StripeModalSubmit.js:
except now when i run it, i get an error that comes back saying
Id
is not defined. if this works like i'm understanding from your example, i should be able to use the store anywhere necessary, correct? i shouldn't have to define the store every time, i just need to pass in values to the store and serialize them as needed. do i understand this correctly?46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
i'm not moving around a whole lot of data, but this is insanely useful even for the little bit i'm moving around. this is the first bot i've built that makes use of modals and buttons, tbh.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
holy fuck. well then!
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
that's impressive. even more so in its simplicity.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
thank you so much @Ben @kyra 🩵🩷🤍🩷🩵 🙏
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
that's perfect. this is going to simplify things so much for me.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
nice.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
i see. and then i just deserialize in the button handler?
46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
interesting. so i create the store, save it to a variable, and pass that variable as the
.setCustomId
argument?46 replies
SIASapphire - Imagine a framework
•Created by FM on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
oh no way. how does that work? is it something like
i went to look at the sapphire docs, but not sure if I was looking in the right spot for this.
46 replies
SIASapphire - Imagine a framework
•Created by FM on 10/8/2024 in #sapphire-support
[ERROR] Encountered error on event listener "CorePreChatInputCommandRun"
🤦♂️
Why is it that the things I struggle with the most have such a simple--and often overlooked--solution?
Thank you. That fixed it.
7 replies
SIASapphire - Imagine a framework
•Created by FM on 10/8/2024 in #sapphire-support
[ERROR] Encountered error on event listener "CorePreChatInputCommandRun"
This is the OwnerOnly precondition, very close to what's demonstrated in the guide:
Everything works ... just, as mentioned before, the error spits when the command this is currently used with (Ping) is executed by a not-owner. This leaves me scratching my head. I've poured over the docs, glanced at the source. I don't know what I'm missing. Any help is appreciated!
7 replies
SIASapphire - Imagine a framework
•Created by FM on 10/8/2024 in #sapphire-support
[ERROR] Encountered error on event listener "CorePreChatInputCommandRun"
I'm getting this error on an OwnerOnly precondition check:
The precondition works, but this error populates when a not-owner uses the command. Precondition code in the following reply.
7 replies