marian
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by marian on 1/19/2024 in #djs-questions
Can you cache rest only?
is there a built in way to cache requests? (using rest only)
3 replies
DIAdiscord.js - Imagine an app
•Created by marian on 7/9/2023 in #djs-voice
Not receiving events
so im trying to listen to voice events but i dont receive anything. I don't receive speaking events nor the received bytes... what could it cause? the bot is in my voice call and its not deafened the code snippet:
@discordjs/voice ^0.16.0
discord.js ^14.11.0
Can anyone help me out?
3 replies
TTCTheo's Typesafe Cult
•Created by marian on 6/30/2023 in #questions
Create a global "reactive" variable
Hello everyone,
I want to have a global variable which is available both on client side components as well as server side components. Is this possible?
My variable stores translations. I want to avoid passing them down as props but I can't figure out a way to make them available in every component. It's important that the value gets initialized on the server, because I read the data by using the file system. Also I'd like to be able to change the variable and with it all components using the variable should get updated.
Thanks in advance!
7 replies