owoer
owoer
SIASapphire - Imagine a framework
Created by owoer on 2/17/2023 in #sapphire-support
@sapphire/shapeshift (?) crashes bot when trying to send embed with description exceeding 4096 chars
that utility function solved my issue so I will mark this as solution, thank you Favna. ❤️ and I dont have any rethrowing mechanism in my code besides what i do in main entry file index.js
async function main() {
const client = new MerlinClient({ .. });

try {
await client.login(TOKEN);
} catch (error) {
client.destroy();
throw error;
}
}

main().catch(console.error);
async function main() {
const client = new MerlinClient({ .. });

try {
await client.login(TOKEN);
} catch (error) {
client.destroy();
throw error;
}
}

main().catch(console.error);
could this be the reason? I doubt it would be since in many last months i have used sapphire+djs and came across many different errors, it never crashed bot. apologies for any inconvenience! monkaS
6 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
I'll mark this as solved 😅
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
that makes sense, sorry for the hassle
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
it really did xd
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
is it a breaking change in sapphire V4? since on sapphire 3.x i never had to call that super function and listeners worked fine.
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
oh interesting, it works after adding that, thank you
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
ok i made a minimal repro here : https://github.com/o-wo/sapphire-v4-messageCreate-event-minimal-repro I have tested on separate test bot with required intents enabled on dashboard and it gives same results, the code is kinda ugly (sorry about that, still noob and learning js from free time after school) >.<
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
fair enough :P
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
i'll setup the minimal repro and come back when done, thank you for your time ^^
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
😨 sorry about that, im still learning
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
one weird thing i observed is that i use coc-tsserver for intellisense and it shows autocompletion for onLoad but doesnt show any tab completion for run method
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
ok sure, thanks for helping ^^
31 replies
SIASapphire - Imagine a framework
Created by owoer on 1/12/2023 in #sapphire-support
message listeners stopped working in sapphire v4 on my bot
31 replies
SIASapphire - Imagine a framework
Created by owoer on 12/30/2022 in #sapphire-support
The argument did not resolve to emoji
ok my bad
15 replies
SIASapphire - Imagine a framework
Created by owoer on 12/30/2022 in #sapphire-support
The argument did not resolve to emoji
oh
15 replies
SIASapphire - Imagine a framework
Created by owoer on 12/30/2022 in #sapphire-support
The argument did not resolve to emoji
15 replies
SIASapphire - Imagine a framework
Created by owoer on 12/30/2022 in #sapphire-support
The argument did not resolve to emoji
so looks like there is no built-in emoji argument in sapphire 3.1.4?
15 replies
SIASapphire - Imagine a framework
Created by owoer on 12/30/2022 in #sapphire-support
The argument did not resolve to emoji
so i solved it by accepting input as string built-in type and then parsing it afterwards
15 replies