Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

TypeError: Member.__init__() missing 1 required keyword-only argument: 'joined_at' #678

Closed
sentry-io bot opened this issue Oct 17, 2022 · 0 comments · Fixed by #680
Closed

TypeError: Member.__init__() missing 1 required keyword-only argument: 'joined_at' #678

sentry-io bot opened this issue Oct 17, 2022 · 0 comments · Fixed by #680
Assignees
Labels
Bug::Library A bug in the library

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 17, 2022

Sentry Issue: INQUIRY-9

TypeError: Member.__init__() missing 1 required keyword-only argument: 'joined_at'
  File "naff/api/events/processors/thread_events.py", line 35, in _on_raw_thread_list_sync
    members = [self.cache.place_member_data(event.data.get("guild_id"), m) for m in event.data.get("members", [])]
  File "naff/api/events/processors/thread_events.py", line 35, in <listcomp>
    members = [self.cache.place_member_data(event.data.get("guild_id"), m) for m in event.data.get("members", [])]
  File "naff/client/smart_cache.py", line 211, in place_member_data
    member = Member.from_dict(data, self._client)
  File "naff/models/discord/base.py", line 28, in from_dict
    return cls(client=client, **cls._filter_kwargs(data, cls._get_init_keys()))

Task exception was never retrieved
future: <Task finished name='Task-219081' coro=<ThreadEvents._on_raw_thread_list_sync() done, defined at /usr/local/lib/python3.10/site-packages/naff/api/events/processors/thread_events.py:30> exception=TypeError("Member.__init__() missing 1 required keyword-only argument: 'joined_at'")>
@LordOfPolls LordOfPolls added the Bug::Library A bug in the library label Oct 17, 2022
@LordOfPolls LordOfPolls self-assigned this Oct 17, 2022
This was linked to pull requests Oct 18, 2022
@LordOfPolls LordOfPolls removed a link to a pull request Oct 18, 2022
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug::Library A bug in the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant