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

message.get_channel() causes AssertionError in VCs #1178

Closed
2 tasks done
Le0Developer opened this issue Jun 2, 2022 · 1 comment
Closed
2 tasks done

message.get_channel() causes AssertionError in VCs #1178

Le0Developer opened this issue Jun 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Le0Developer
Copy link
Contributor

Steps to reproduce

  1. send a message in a text in voice channel
  2. call message.get_channel()

Expected result

No AssertionError

Actual result

AssertionError

System info

hikari (2.0.0.dev109) [HEAD]
located at /home/pi/.local/lib/python3.10/site-packages/hikari
CPython 3.10.2 GCC 10.2.1 20210110
Linux rasp-3b-02 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l

Further info

AssertionError: Cached channel ID is not a TextableGuildChannel, but a GuildVoiceChannel!
  File "threading.py", line 946, in run
    self._target(*self._args, **self._kwargs)
  File "clend/guild/components/slowmode.py", line 19, in on_message_create
    channel = event.get_channel()
  File "hikari/events/message_events.py", line 277, in get_channel
    assert channel is None or isinstance(

image

Checklist

  • I have made sure to remove ANY sensitive information (bot token, passwords, credentials, personal details, etc.).
  • I have searched the issue tracker and have made sure it's not a duplicate. If it is a follow up of another issue, I have specified it.
@Le0Developer Le0Developer added the bug Something isn't working label Jun 2, 2022
@davfsa
Copy link
Member

davfsa commented Jul 1, 2022

Fixed as of #1179

@davfsa davfsa closed this as completed Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants