Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

«on_scheduled_event_update» event always returns None instead of «before» #1579

Closed
3 tasks done
jokelbaf opened this issue Aug 20, 2022 · 0 comments · Fixed by #1580
Closed
3 tasks done

«on_scheduled_event_update» event always returns None instead of «before» #1579

jokelbaf opened this issue Aug 20, 2022 · 0 comments · Fixed by #1580
Labels
unconfirmed bug A bug report that needs triaging

Comments

@jokelbaf
Copy link

Summary

Under any circumstances «before» argument in «on_scheduled_event_update» event is always None.

Reproduction Steps

Call «on_scheduled_event_update» event.

Minimal Reproducible Code

@commands.Cog.listener()
    async def on_scheduled_event_update(self, before: discord.ScheduledEvent, after: discord.ScheduledEvent):
    print(before, after)

Expected Results

«before» must be an old scheduled event. And «after» must be an updated scheduled event.

Actual Results

«after» is an updated scheduled event and «before» is always None.

Intents

all

System Information

  • Python v3.10.4-final
  • py-cord v2.0.1-final
  • aiohttp v3.7.4.post0
  • system info: Windows 10 10.0.22000

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

@jokelbaf jokelbaf added the unconfirmed bug A bug report that needs triaging label Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug A bug report that needs triaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant