Closed
Description
Library Version
5.14
Describe the Bug
When a Discord user creates an invite to join a voice chat activity, the bot gives TypeError stating Application.init() missing 3 required keyword-only arguments: 'id', 'name', and 'summary'. This happens in the _on_raw_invite_create event handler.
Steps to Reproduce
Steps to Reproduce
- setup a @listen for a on_raw_gateway_event
- create a new voice channel (to ensure no invite has been created for it yet) in a guild with the bot
- give the bot admin perms (i dont know the specific perm that enables bots to view invites, but admin provides all)
- start a voice chat activity and right click on the voice chat in the sidebar and choose 'invite to join '
- view the error appear
Expected Results
bot throws typeerror
Minimal Reproducible Code
# setup this listener somewhere in your bots code
@listen()
async def on_raw_gateway_event(event):
print(f"Received event: {event.data}")
Traceback
Task exception was never retrieved
future: <Task finished name='Task-92' coro=<ChannelEvents._on_raw_invite_create() done, defined at D:\Also Github\interactions.py\interactions\api\events\processors\channel_events.py:41> exception=TypeError("Application.__init__() missing 3 required keyword-only arguments: 'id', 'name', and 'summary'")>
Traceback (most recent call last):
File "D:\Also Github\interactions.py\interactions\api\events\processors\channel_events.py", line 43, in _on_raw_invite_create
self.dispatch(events.InviteCreate(Invite.from_dict(event.data, self))) # type: ignore
File "D:\Also Github\interactions.py\interactions\models\discord\base.py", line 36, in from_dict
data = cls._process_dict(data, client)
File "D:\Also Github\interactions.py\interactions\models\discord\invite.py", line 99, in _process_dict
data["target_application"] = Application.from_dict(data, client)
File "D:\Also Github\interactions.py\interactions\models\discord\base.py", line 37, in from_dict
return cls(client=client, **cls._filter_kwargs(data, cls._get_init_keys()))
TypeError: Application.__init__() missing 3 required keyword-only arguments: 'id', 'name', and 'summary'
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.
- I have attempted to debug this myself, and I believe this issue is with the library
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels