Open Sedpower opened 1 year ago
It's not useless, the behaviour here is normal. ScheduledEvent.subscribers()
is a method that fetches them from Discord; since it was deleted, this is impossible as it no longer exists.
The only workaround to this would be to internally cache the subscribed members.
:/ this is counter intuitive And do you know why this event isnt called when an event finish by himself but only when someone delete cancel it ?
And do you know why this event isnt called when an event finish by himself but only when someone delete cancel it ?
Because that's what it is, the delete event. If an event has an end_time
and that time has passed then it calls on_scheduled_event_update
with after.status
as discord.ScheduledEventStatus.completed
And do you know why this event isnt called when an event finish by himself but only when someone delete cancel it ?
Because that's what it is, the delete event. If an event has an
end_time
and that time has passed then it callson_scheduled_event_update
withafter.status
asdiscord.ScheduledEventStatus.completed
ok I thought the event was deleted when it ended
The only workaround to this would be to internally cache the subscribed members.
User caching could be implemented, so this can stay open as a feature request
The only workaround to this would be to internally cache the subscribed members.
User caching could be implemented, so this can stay open as a feature request
Yeah it could be a very usefull feature
Summary
event parameter contains nothing relevant
Reproduction Steps
just implement the
on_sceduled_event_delete
then print for example event.interested it will print NoneMinimal Reproducible Code
Expected Results
Actual Results
Intents
System Information
Checklist
Additional Context
I want to remove a role which is added when a user click on intserested but when a scheduled event finish by itself,
on_sceduled_event_delete
os not even executed. And when I manually delete an event, I cant access to the list of members who were interested by the event before deletion because it is null. So why put the event as argument ofon_sceduled_event_delete
event listener if all data is None ...