Skip to content

[BUG] Attribute error in verification #158

Description

@Xarlos89

Describe the bug

:: 06-19 05:16.51 :: ERROR :: bot.py line 366 --- Ignoring exception in command verify
Traceback (most recent call last):
  File "/bot/.venv/lib/python3.12/site-packages/discord/ext/commands/core.py", line 266, in wrapped
    ret = await coro(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/bot/src/bot/cogs/verification/verification_dropdown.py", line 126, in verify
    await ctx.respond(
          ^^^^^^^^^^^
AttributeError: 'Context' object has no attribute 'respond'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/bot/.venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 1376, in invoke
    await ctx.command.invoke(ctx)
  File "/bot/.venv/lib/python3.12/site-packages/discord/ext/commands/core.py", line 1064, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/bot/.venv/lib/python3.12/site-packages/discord/ext/commands/core.py", line 275, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'respond'

Expected behavior

No error, obviously.

To Reproduce

Seems like this is coming from the verification process. Not sure how.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions