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

Getting several warnings and an error when trying to create a new reaction message. #54

Closed
Su13n opened this issue Jan 15, 2021 · 1 comment · Fixed by #55
Closed

Getting several warnings and an error when trying to create a new reaction message. #54

Su13n opened this issue Jan 15, 2021 · 1 comment · Fixed by #55
Labels
bug Something isn't working

Comments

@Su13n
Copy link

Su13n commented Jan 15, 2021

Describe the problem you are running into

Mentioning the channel where I want to create the new reaction message causes several warning and an the attribute error to appear.

Server:

  • OS: Ubuntu 18.04.5
  • Python version: 3.8.7
  • discord.py version: 1.6.0

Traceback

Reaction Light ready!
bot.py:415: RuntimeWarning: coroutine 'getchannel' was never awaited
  bot_permissions = await getchannel(target_channel).permissions_for(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Ignoring exception in on_message
Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
    await coro(*args, **kwargs)
  File "bot.py", line 415, in on_message
    bot_permissions = await getchannel(target_channel).permissions_for(
AttributeError: 'coroutine' object has no attribute 'permissions_for'
@eibex
Copy link
Owner

eibex commented Jan 15, 2021

Thanks for the bug report, this should now be fixed in the latest version. You should be able to run rl!update without errors and get 2.1.3 running.

@eibex eibex added bug Something isn't working and removed support Questions regarding running the bot labels Jan 15, 2021
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
2 participants