python-discord/sir-lancebot

AttributeError: __enter__

sentry-io opened this issue · 5 comments

Sentry Issue: SIR-LANCEBOT-91

AttributeError: __enter__
  File "discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
  File "bot/exts/fun/snakes/_snakes_cog.py", line 601, in draw_command
    with ctx.typing():

Unhandled command error: __enter__

There are a couple of occurences of with ctx.typing(): across the bot. These should all be changed to async with ctx.typing():

See https://discordpy.readthedocs.io/en/stable/ext/commands/api.html?highlight=context%20typing#discord.ext.commands.Context.typing

Changed in version 2.0: This no longer works with the with syntax, async with must be used instead.

@wookie184 Hello, I can do this.

@wookie184 Hello, I can do this.

👍 I've assigned you

Currently setting up my development environment

Hi @mudkipdev, can we help you out with your dev environment?