You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to accept an attachment argument in a slash command, the library gives an error: AttributeError: 'Attachment' object has no attribute '_client'
Instead, I received this traceback error given from my Python terminal:
Traceback (most recent call last):
File "................/test.py", line 23, in <module>
bot.start()
File "................/python3.9/site-packages/interactions/client.py", line 109, in start
self._loop.run_until_complete(self._ready())
File "................/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "................/python3.9/site-packages/interactions/client.py", line 307, in _ready
await self._login()
File "................/python3.9/site-packages/interactions/client.py", line 312, in _login
await self._websocket._establish_connection(self._shard, self._presence)
File "................/python3.9/site-packages/interactions/api/gateway.py", line 209, in _establish_connection
await self._handle_connection(stream, shard, presence)
File "................/python3.9/site-packages/interactions/api/gateway.py", line 277, in _handle_connection
self._dispatch_event(event, data)
File "................/python3.9/site-packages/interactions/api/gateway.py", line 340, in _dispatch_event
_type[option.value]._client = self._http
AttributeError: 'Attachment' object has no attribute '_client'
What version of the library did you use?
release
Code of Conduct
I agree to follow the contribution requirements.
The text was updated successfully, but these errors were encountered:
Describe the bug.
When trying to accept an attachment argument in a slash command, the library gives an error:
AttributeError: 'Attachment' object has no attribute '_client'
List the steps.
Example test script
What you expected.
I expected the bot to reply with "Success".
What you saw.
Instead, I received this traceback error given from my Python terminal:
What version of the library did you use?
release
Code of Conduct
The text was updated successfully, but these errors were encountered: