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
- 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!Node version is 20.11.0 discord js version listed in tags
:method: GuildScheduledEventManager#fetch()
Obtains one or more guild scheduled events from Discord, or the guild cache if it's already available.
Ty ❤️
how do i search a specific guild using a guildid?
<Client>.guilds.cache.get("guild_id")