Getting Guild Events

In trying to create a message system to remind users before a guild event starts. I’ve gone through the documentation and found the methods of how to get the event information. However, that seems to require the event id and I cant find any way to get the id of the event without it being manually entered. So if any of you know a way I can have it search a given guild for any scheduled events and get the ids of them if there are any.
5 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
GodOfSandwiches
GodOfSandwichesOP10mo ago
Node version is 20.11.0 discord js version listed in tags
d.js docs
d.js docs10mo ago
:method: GuildScheduledEventManager#fetch() Obtains one or more guild scheduled events from Discord, or the guild cache if it's already available.
GodOfSandwiches
GodOfSandwichesOP10mo ago
Ty ❤️ how do i search a specific guild using a guildid?
Danial
Danial10mo ago
<Client>.guilds.cache.get("guild_id")
Want results from more Discord servers?
Add your server