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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the disconnect command error #40

Merged
merged 1 commit into from Dec 19, 2017

Conversation

shikhir-arora
Copy link
Member

  • This was removed in 8ecce9f as part
    of a cleanup, but this is needed to avoid an error on the disconnect
    command.
Traceback (most recent call last):
  File "/home/vlexar/main/vlexar/Giesela/musicbot/bot.py", line 626, in
on_message
    response = await handler(**handler_kwargs)
  File
"/home/vlexar/main/vlexar/Giesela/musicbot/commands/admin_commands.py",
line 478, in cmd_disconnect
    await server.voice_client.disconnect()
  File
"/usr/local/lib/python3.6/dist-packages/discord/voice_client.py", line
297, in disconnect
  File "/usr/local/lib/python3.6/dist-packages/websockets/protocol.py",
line 396, in close
    def encode_data(self, data):
  File "/usr/local/lib/python3.6/dist-packages/discord/gateway.py",
line 686, in close_connection
TypeError: close_connection() got an unexpected keyword argument 'force'

Specifically, the call to await server.voice_client.disconnect()
doesn鈥檛 work without this back. 馃槃

/cc @siku2

* This was removed in 8ecce9f as part
of
a cleanup, but this is needed to avoid an error on the disconnect
command.

==================

Traceback (most recent call last):
  File "/home/vlexar/main/vlexar/Giesela/musicbot/bot.py", line 626, in
on_message
    response = await handler(**handler_kwargs)
  File
"/home/vlexar/main/vlexar/Giesela/musicbot/commands/admin_commands.py",
line 478, in cmd_disconnect
    await server.voice_client.disconnect()
  File
"/usr/local/lib/python3.6/dist-packages/discord/voice_client.py", line
297, in disconnect
  File "/usr/local/lib/python3.6/dist-packages/websockets/protocol.py",
line 396, in close
    def encode_data(self, data):
  File "/usr/local/lib/python3.6/dist-packages/discord/gateway.py",
line 686, in close_connection
TypeError: close_connection() got an unexpected keyword argument 'force'

==================

* Specifically, the call to await server.voice_client.disconnect()
doesn鈥檛 work without this back. 馃槃
@shikhir-arora shikhir-arora self-assigned this Dec 19, 2017
@shikhir-arora shikhir-arora merged commit 85fd37c into gieseladev:master Dec 19, 2017
shikhir-arora added a commit that referenced this pull request Dec 19, 2017
Fixes disconnect error /xref PR #40
shikhir-arora added a commit that referenced this pull request Dec 19, 2017
shikhir-arora added a commit that referenced this pull request Dec 19, 2017
Revert "Fixes disconnect error /xref PR #40"
siku2 pushed a commit that referenced this pull request Aug 3, 2018
Fixes the disconnect command error
siku2 pushed a commit that referenced this pull request Aug 3, 2018
Fixes disconnect error /xref PR #40
siku2 pushed a commit that referenced this pull request Aug 3, 2018
siku2 pushed a commit that referenced this pull request Aug 3, 2018
Revert "Fixes disconnect error /xref PR #40"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant