Duck
SIASapphire - Imagine a framework
•Created by Duck on 12/16/2023 in #discordjs-support
Encountered error while handling an interaction handler run method for interaction-handler
For whatever reason if I send a reply immediately in the
parse
function of sapphire's interaction handler before it's sent to mine, it stops the error. :BRUH:9 replies
SIASapphire - Imagine a framework
•Created by Duck on 12/16/2023 in #discordjs-support
Encountered error while handling an interaction handler run method for interaction-handler
Weirdly enough I know how to stop the error, my interaction handler that runs preconditions on the interaction is the reason it's erroring. It doesn't error on my other interactions only in this specific scenario. I don't know why it's causing an unknown interaction error, if anyone knows anything about this error or wants to help please hmu
9 replies
SIASapphire - Imagine a framework
•Created by Duck on 12/16/2023 in #discordjs-support
Encountered error while handling an interaction handler run method for interaction-handler
I tried a more basic approach by having the button handle a specific interaction.
No luck, same error. For those unaware, I have a wrapper on interaction handler that allows me to run preconditions through interactions.
9 replies
SIASapphire - Imagine a framework
•Created by Duck on 12/16/2023 in #discordjs-support
Encountered error while handling an interaction handler run method for interaction-handler
Still having this issue and haven't figured out why just yet
9 replies
SIASapphire - Imagine a framework
•Created by Duck on 12/16/2023 in #discordjs-support
Encountered error while handling an interaction handler run method for interaction-handler
And it is almost a direct copy of this which does work
DuckRefreshButton.ts the button
replyToInteration.ts for the duck command
9 replies
SIASapphire - Imagine a framework
•Created by Duck on 12/16/2023 in #discordjs-support
Encountered error while handling an interaction handler run method for interaction-handler
"discord.js": "^14.14.1",
9 replies
SIASapphire - Imagine a framework
•Created by Starr Rossa on 4/26/2023 in #sapphire-support
PaginatedMessage extended with editing the select menu options does not work as expected
Without actually executing it's hard to say precisely what it's doing but if you try comparing
GenOptions
and SubPage
it might be more consistent18 replies
SIASapphire - Imagine a framework
•Created by Starr Rossa on 4/26/2023 in #sapphire-support
PaginatedMessage extended with editing the select menu options does not work as expected
Here
Try replacing
this.genaratedOptions.length > 10
with GenOptions > SubPage + 2
18 replies
SIASapphire - Imagine a framework
•Created by Starr Rossa on 4/26/2023 in #sapphire-support
PaginatedMessage extended with editing the select menu options does not work as expected
just the new one will do
18 replies
SIASapphire - Imagine a framework
•Created by Starr Rossa on 4/26/2023 in #sapphire-support
PaginatedMessage extended with editing the select menu options does not work as expected
It's hard to say without the rest of the file to give context
18 replies
SIASapphire - Imagine a framework
•Created by Starr Rossa on 4/26/2023 in #sapphire-support
PaginatedMessage extended with editing the select menu options does not work as expected
If it's the map causing issues
Then you are likely trying to access an item that doesn't exist
18 replies
SIASapphire - Imagine a framework
•Created by Starr Rossa on 4/26/2023 in #sapphire-support
PaginatedMessage extended with editing the select menu options does not work as expected
send the error
18 replies
SIASapphire - Imagine a framework
•Created by Duck on 4/7/2023 in #sapphire-support
TypeError: Cannot read properties of undefined (reading 'write')
Yea you are supposed to import it from framework and not the plugin itself
10 replies
SIASapphire - Imagine a framework
•Created by Duck on 4/7/2023 in #sapphire-support
TypeError: Cannot read properties of undefined (reading 'write')
I import the container in this instance, what are you doing specifically?
10 replies
SIASapphire - Imagine a framework
•Created by Duck on 4/7/2023 in #sapphire-support
TypeError: Cannot read properties of undefined (reading 'write')
Actually I figured it out,
Doing
.catch(container.logger.error)
will just absolutely obliterate the logger lmao10 replies
SIASapphire - Imagine a framework
•Created by Duck on 4/7/2023 in #sapphire-support
TypeError: Cannot read properties of undefined (reading 'write')
Though it's annoying no other error appears before the logger so I don't know
10 replies
SIASapphire - Imagine a framework
•Created by Duck on 4/7/2023 in #sapphire-support
TypeError: Cannot read properties of undefined (reading 'write')
I am thinking, maybe when it runs the
insertDocument
method, if it fails it might crash the logger10 replies