GodOfSandwiches
GodOfSandwiches
DIAdiscord.js - Imagine an app
Created by GodOfSandwiches on 3/9/2024 in #djs-questions
fetching scheduled events
Im having trouble figuring out how to fetch the scheduled events for a guild using. djs ver: 14.14.1 node ver 20.11.0 code is too long to include in this message see below i keep getting this error C:\Users\Robyn\source\repos\GodOfSandwiches\TauntBot>node index.js Ready! Logged in as PF Taunts#1988 Connected to MongoDB Atlas Connected to MongoDB Atlas Error fetching events for guild: 1095815129905504306 TypeError: GuildScheduledEvent.fetchEvents is not a function at getGuildEvents (C:\Users\Robyn\source\repos\GodOfSandwiches\TauntBot\guildEventManager.js:9:57) at scanForEvents (C:\Users\Robyn\source\repos\GodOfSandwiches\TauntBot\guildEventManager.js:21:37) at runEventShitIDK (C:\Users\Robyn\source\repos\GodOfSandwiches\TauntBot\index.js:45:5) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error fetching events for guild: 1102982168243880019 TypeError: GuildScheduledEvent.fetchEvents is not a function at getGuildEvents (C:\Users\Robyn\source\repos\GodOfSandwiches\TauntBot\guildEventManager.js:9:57) at scanForEvents (C:\Users\Robyn\source\repos\GodOfSandwiches\TauntBot\guildEventManager.js:21:37) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12 replies
DIAdiscord.js - Imagine an app
Created by GodOfSandwiches on 2/14/2024 in #djs-questions
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.
7 replies