Loris 🐐
Explore posts from serversBABetter Auth
•Created by Loris 🐐 on 4/10/2025 in #help
Retrive organizations members with bearer token
Hello !
I use the bearer plugin to authenticate requests to a websocket server that cannot support the better-auth default format.
I take as parameters the name of an organization (I've enabled the plugin) and the bearer token.
I need to find the organizations of which the user is a member, based on the token passed, so that I can compare their names with the one passed to me.
I'm already retrieving the session, but I'm having trouble seeing how I can get the list of organizations of which he's a member.
4 replies
DIAdiscord.js - Imagine an app
•Created by Loris 🐐 on 6/12/2024 in #djs-questions
Unable to fetch all members from role
Hello.
For my app, i need to get all members of a predefined role id to fill a const
Unfortunately, when i fetch members from role, i get only me in member, other member is not present in map.
I have enabled Guild and Guild_Members intents.
7 replies
DIAdiscord.js - Imagine an app
•Created by Loris 🐐 on 6/22/2023 in #djs-questions
Exit the Client Ready event
Good evening, I have a js script which is used for a cron task, so I would like it to stop by itself after execution, but I use the ready event, and the script continues to run even after the commands have finished.
Is it possible to stop the script after the end of the code in the event ready?
Thank you in avance !
8 replies