This repository was archived by the owner on May 13, 2025. It is now read-only.
Description 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
Reactions are currently unavailable
User Message: !accept_tos
Error: 403 Forbidden (error code: 50003): Cannot execute action on a DM channel
Traceback:
Command:
accept_tosAuthor: 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.1OS:
Linux 6.2.0-39-generic