Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Auto Generated Report: 403 Forbidden (error code: 50003): Cannot execute action on a DM channel #191

Description

@atsuko-bot

User Message: !accept_tos
Error: 403 Forbidden (error code: 50003): Cannot execute action on a DM channel
Traceback:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/discord/ext/commands/core.py", line 229, in wrapped
    ret = await coro(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/exohayvan/Desktop/atsuko/bot-old/main.py", line 279, in accept_tos
    await ctx.message.delete()
  File "/usr/lib/python3/dist-packages/discord/message.py", line 805, in delete
    await self._state.http.delete_message(self.channel.id, self.id)
  File "/usr/lib/python3/dist-packages/discord/http.py", line 738, in request
    raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 50003): Cannot execute action on a DM channel

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

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/discord/ext/commands/bot.py", line 1349, in invoke
    await ctx.command.invoke(ctx)
  File "/usr/lib/python3/dist-packages/discord/ext/commands/core.py", line 1023, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/discord/ext/commands/core.py", line 238, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: Forbidden: 403 Forbidden (error code: 50003): Cannot execute action on a DM channel

Command: accept_tos
Author: dieingzambies12#0
Channel: Direct Message with Unknown User
Python Version: 3.11.4 (main, Dec 7 2023, 15:43:41) [GCC 12.3.0]
discord.py Version: 2.1.1
OS: Linux 6.2.0-39-generic

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions