Trying to start a scheduled event
I'm running into an error when trying to start a scheduled event:
Error:
Creation Code:
Starting Code:
I am manually able to start the event from the UI, but not from code?
9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.just to confirm, PVMEvent.ts line 70 is where you call
setStatus
?yes
interesting, as your code doesn't match your error
the stack trace should read that you called
GuildScheduledEvent.setStatus
, which would then call GuildScheduledEventManager.edit
I'm not even entirely sure where that date string is coming from, but GuildScheduledEventStatus.Active
's value is 2
the code you've shown has no issues on my end
if you're using something like ts-node, you could also consider actually compilingYeah, honestly wasn't sure myself
since this code is a little different, could you also log
status
just to make sure?@ducktrshessami I am very sorry to have wasted your time...
Please forget you ever read this ticket
so I had originally hard coded the Active status, but changed the signature of the function to be dynamic.
But... I didn't change the calls to the functions... working as intended now
no worries lol